导航菜单

页面标题

页面副标题

MedEd v5.3.6 - AllScheduleActivity.java 源代码

正在查看: MedEd v5.3.6 应用的 AllScheduleActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.penpencil.physicswallah.feature.batch.presentation.activity;

import android.os.Bundle;
import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.penpencil.network.localfile.LocalFileCredentials;
import com.penpencil.network.localfile.database.entity.LocalFileEntity;
import com.penpencil.network.response.Subject;
import defpackage.bG2$c;
import java.util.List;
import kotlin.jvm.internal.Intrinsics;

public class AllScheduleActivity extends rp implements bG2$c {
    public static final int L0 = 0;
    public List<Subject> H0;
    public bG2 I0;
    public String J0 = "";
    public final a K0 = new a();

    @BindView
    ImageView backBtnIv;

    @BindView
    TextView emptyTv;

    @BindView
    RecyclerView schedulesRcv;

    public class a implements It0 {
        public a() {
        }

        public final void G0(int i, int i2, String str) {
        }

        public final void J(String str) {
            AllScheduleActivity.this.I0.notifyDataSetChanged();
        }

        public final void M(int i, String str, String str2) {
            rt0 rt0Var = rt0.y;
            a.a().E(str, this);
            AllScheduleActivity.this.I0.notifyDataSetChanged();
        }

        public final void Q(String str) {
            AllScheduleActivity.this.I0.notifyDataSetChanged();
        }

        public final void m0(String str, int i, String str2) {
            rt0 rt0Var = rt0.y;
            a.a().E(str, this);
            AllScheduleActivity.this.I0.notifyDataSetChanged();
        }

        public final void n0(int i, String str, String str2, zd0 zd0Var) {
            AllScheduleActivity.this.I0.notifyDataSetChanged();
            rt0 rt0Var = rt0.y;
            a.a().E(str, this);
            String.valueOf(i);
        }

        public final void u0(int i, String str) {
        }
    }

    public final void U0(String str, String str2, String str3, String str4, String str5, Subject subject) {
        char c = 65535;
        switch (str5.hashCode()) {
            case -1192522393:
                if (str5.equals("RESUME_BACKGROUND_DOWNLOAD")) {
                    c = 0;
                    break;
                }
                break;
            case -1089997788:
                if (str5.equals("REMOVE_LISTENERS")) {
                    c = 1;
                    break;
                }
                break;
            case 736685025:
                if (str5.equals("ADD_LISTENERS")) {
                    c = 2;
                    break;
                }
                break;
            case 1489968249:
                if (str5.equals("BACKGROUND_DOWNLOAD")) {
                    c = 3;
                    break;
                }
                break;
        }
        a aVar = this.K0;
        if (c == 0) {
            rt0 rt0Var = rt0.y;
            a.a().F(str, str2, str3);
            return;
        }
        if (c == 1) {
            rt0 rt0Var2 = rt0.y;
            a.a().E(str4, aVar);
            return;
        }
        if (c == 2) {
            rt0 rt0Var3 = rt0.y;
            a.a().n(str4, aVar);
            return;
        }
        if (c != 3) {
            return;
        }
        LocalFileCredentials localFileCredentials = new LocalFileCredentials(new LocalFileEntity(str4, 116, M2.b(str2, "/", str3), this.J0, subject.get_id(), subject.getSubject(), "BATCH", ((rp) this).C0.c().t()));
        rt0 rt0Var4 = rt0.y;
        rt0 a2 = a.a();
        Intrinsics.checkNotNullParameter(str, "url");
        Intrinsics.checkNotNullParameter(str2, "filePath");
        Intrinsics.checkNotNullParameter(str3, "fileName");
        Intrinsics.checkNotNullParameter(str4, "fileId");
        Intrinsics.checkNotNullParameter(aVar, "fileDownloadUpdatesListener");
        rt0.u(a2, str, str2, str3, str4, 116, aVar, localFileCredentials, (String) null, (String) null, (String) null, 1920);
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558430);
        ButterKnife.b(this);
        String stringExtra = getIntent().getStringExtra("data");
        this.J0 = getIntent().getStringExtra("batchId");
        this.H0 = pK0.a(Subject.class, stringExtra);
        this.backBtnIv.setOnClickListener(new cY2(this, 2));
        List<Subject> list = this.H0;
        if (list == null || list.size() == 0) {
            this.emptyTv.setVisibility(0);
            this.schedulesRcv.setVisibility(8);
            return;
        }
        if (getResources().getBoolean(2131034120)) {
            this.schedulesRcv.setLayoutManager(new GridLayoutManager(2));
        } else {
            this.schedulesRcv.setLayoutManager(new LinearLayoutManager(1));
        }
        bG2 bg2 = new bG2(this.H0, this, this, !TextUtils.isEmpty(this.J0) ? this.J0 : "", ((rp) this).C0);
        this.I0 = bg2;
        this.schedulesRcv.setAdapter(bg2);
        this.I0.notifyDataSetChanged();
    }
}