导航菜单

页面标题

页面副标题

远离手机 v4.9.11 - DenyPageSettingActivity.java 源代码

正在查看: 远离手机 v4.9.11 应用的 DenyPageSettingActivity.java JAVA 源代码文件

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


package com.lijianqiang12.silent.component.activity.lock.setting;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import androidx.fragment.app.IllIlI1l1I;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import com.blankj.utilcode.util.GsonUtils;
import com.blankj.utilcode.util.ToastUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.OnItemClickListener;
import com.chad.library.adapter.base.listener.OnItemLongClickListener;
import com.jeremyliao.liveeventbus.LiveEventBus;
import com.lijianqiang12.silent.I11III11ll1I1;
import com.lijianqiang12.silent.I1Il1lIl11I;
import com.lijianqiang12.silent.I1lIlIl11111I;
import com.lijianqiang12.silent.Il111llIIlIl1;
import com.lijianqiang12.silent.Il11IIIllIl;
import com.lijianqiang12.silent.IlI11IIl1IIl;
import com.lijianqiang12.silent.IlI1llI1llI1l;
import com.lijianqiang12.silent.IlIlII1IIII11;
import com.lijianqiang12.silent.Ill1IIIl1lIll;
import com.lijianqiang12.silent.component.activity.lock.setting.DenyPageSettingActivity;
import com.lijianqiang12.silent.l1IIl111II1;
import com.lijianqiang12.silent.l1l1lIII11I11;
import com.lijianqiang12.silent.lI1111I11I11I;
import com.lijianqiang12.silent.lI11llI11;
import com.lijianqiang12.silent.lI1llI111l1I;
import com.lijianqiang12.silent.lII111I111I;
import com.lijianqiang12.silent.lIII1l11I1lI;
import com.lijianqiang12.silent.lIIl1Ill111;
import com.lijianqiang12.silent.ll111ll1lII;
import com.tencent.connect.share.QQShare;
import com.tencent.cos.xml.crypto.JceEncryptionConstants;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;

@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0014\u0010\u0015J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\u0010\u0010\u0006\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\b\u0010\u0007\u001a\u00020\u0004H\u0002J\u0012\u0010\n\u001a\u00020\u00042\b\u0010\t\u001a\u0004\u0018\u00010\bH\u0014J\b\u0010\u000b\u001a\u00020\u0004H\u0014R\u0016\u0010\u000f\u001a\u00020\f8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\r\u0010\u000eR\u0016\u0010\u0013\u001a\u00020\u00108\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u0011\u0010\u0012¨\u0006\u0016"}, d2 = {"Lcom/lijianqiang12/silent/component/activity/lock/setting/DenyPageSettingActivity;", "Lcom/lijianqiang12/silent/lI1llI111l1I;", "Lcom/lijianqiang12/silent/component/activity/lock/setting/TheDenyPage2;", "denyPage", "Lcom/lijianqiang12/silent/ll1II1Il1111l;", "Il1I1l111l1l", "lIlI1IIllI1", "I1Il1l11II1lI", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "onResume", "Landroidx/recyclerview/widget/RecyclerView;", "l1I11II1llI1I", "Landroidx/recyclerview/widget/RecyclerView;", "recyclerview", "Lcom/lijianqiang12/silent/component/activity/lock/setting/DenyPageAdapter;", "IIl1ll1ll1l", "Lcom/lijianqiang12/silent/component/activity/lock/setting/DenyPageAdapter;", "mAdapter", "<init>", "()V", "app_honor64Release"}, k = 1, mv = {1, 9, 0})
@I11III11ll1I1({"SMAP\nDenyPageSettingActivity.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DenyPageSettingActivity.kt\ncom/lijianqiang12/silent/component/activity/lock/setting/DenyPageSettingActivity\n+ 2 ActivityDenyPageSetting.kt\nkotlinx/android/synthetic/main/activity_deny_page_setting/ActivityDenyPageSettingKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,192:1\n18#2:193\n16#2:194\n32#2:195\n30#2:196\n46#2:197\n44#2:198\n39#2:199\n37#2:200\n39#2:207\n37#2:208\n1855#3,2:201\n1855#3,2:203\n1855#3,2:205\n*S KotlinDebug\n*F\n+ 1 DenyPageSettingActivity.kt\ncom/lijianqiang12/silent/component/activity/lock/setting/DenyPageSettingActivity\n*L\n33#1:193\n33#1:194\n35#1:195\n35#1:196\n90#1:197\n90#1:198\n96#1:199\n96#1:200\n190#1:207\n190#1:208\n134#1:201,2\n156#1:203,2\n184#1:205,2\n*E\n"})
public final class DenyPageSettingActivity extends lI1llI111l1I {

    private DenyPageAdapter mAdapter;

    private RecyclerView recyclerview;

    public static final class IIllIl1llII implements ll111ll1lII {
        IIllIl1llII() {
        }

        @Override
        public void IIllIl1llII() {
            DenyPageSettingActivity.this.startActivity(new Intent((Context) DenyPageSettingActivity.this, (Class<?>) FastDenyPageSettingActivity.class));
        }
    }

    public static final class Il11lI1III1 implements ll111ll1lII {
        final int Il11lI1III1;
        final BaseQuickAdapter IlllIll1I1I;

        Il11lI1III1(BaseQuickAdapter baseQuickAdapter, int i) {
            this.IlllIll1I1I = baseQuickAdapter;
            this.Il11lI1III1 = i;
        }

        @Override
        public void IIllIl1llII() {
            DenyPageSettingActivity denyPageSettingActivity = DenyPageSettingActivity.this;
            Object obj = this.IlllIll1I1I.getData().get(this.Il11lI1III1);
            l1l1lIII11I11.l1llllI11l111(obj, "null cannot be cast to non-null type com.lijianqiang12.silent.component.activity.lock.setting.TheDenyPage2");
            denyPageSettingActivity.lIlI1IIllI1((TheDenyPage2) obj);
        }
    }

    public static final class IlllIll1I1I implements IlI11IIl1IIl {

        public static final class IIllIl1llII implements lIII1l11I1lI {
            final DenyPageSettingActivity IIllIl1llII;

            IIllIl1llII(DenyPageSettingActivity denyPageSettingActivity) {
                this.IIllIl1llII = denyPageSettingActivity;
            }

            @Override
            public void IIllIl1llII() {
                I1lIlIl11111I.IIllIl1llII iIllIl1llII = I1lIlIl11111I.IIllIl1llII;
                String IIllIl1llII = lII111I111I.IIllIl1llII.IIllIl1llII();
                Context applicationContext = this.IIllIl1llII.getApplicationContext();
                l1l1lIII11I11.III11IIll1lI1(applicationContext, "getApplicationContext(...)");
                if (iIllIl1llII.IllII1lIII(IIllIl1llII, applicationContext)) {
                    ToastUtils.showShort("无障碍权限已开启", new Object[0]);
                } else {
                    iIllIl1llII.lI11lI1l1(this.IIllIl1llII);
                }
            }
        }

        public static final class Il11lI1III1 implements IlI11IIl1IIl {
            Il11lI1III1() {
            }

            @Override
            public void IIllIl1llII() {
            }
        }

        public static final class C0058IlllIll1I1I implements ll111ll1lII {
            C0058IlllIll1I1I() {
            }

            @Override
            public void IIllIl1llII() {
                LiveEventBus.get(IlI1llI1llI1l.lllIlIl11ll, Boolean.TYPE).post(Boolean.TRUE);
            }
        }

        IlllIll1I1I() {
        }

        @Override
        public void IIllIl1llII() {
            Ill1IIIl1lIll ill1IIIl1lIll = new Ill1IIIl1lIll((IllIlI1l1I) DenyPageSettingActivity.this);
            ?? r1 = DenyPageSettingActivity.this;
            ill1IIIl1lIll.IIlIlIlI111ll("温馨提示");
            ill1IIIl1lIll.Ill11IIlII1(8388611);
            ill1IIIl1lIll.lI1111IllIl1("1. 点击确定后,手机左上角会显示悬浮窗。\n2. 进入你想屏蔽的页面\n3. 点击悬浮窗“添加”,即可在锁机时屏蔽该页面。");
            I1lIlIl11111I.IIllIl1llII iIllIl1llII = I1lIlIl11111I.IIllIl1llII;
            String IIllIl1llII2 = lII111I111I.IIllIl1llII.IIllIl1llII();
            Context applicationContext = r1.getApplicationContext();
            l1l1lIII11I11.III11IIll1lI1(applicationContext, "getApplicationContext(...)");
            if (!iIllIl1llII.IllII1lIII(IIllIl1llII2, applicationContext)) {
                ill1IIIl1lIll.IlII1l1l1IIlI("⚠️ 若屏蔽系统页面,请先授予无障碍权限(点我设置)");
            }
            ill1IIIl1lIll.l1l1Il1llII1(new IIllIl1llII(r1));
            ill1IIIl1lIll.Il1I1l111l1l("确定", new C0058IlllIll1I1I());
            ill1IIIl1lIll.lIllll11l1I1I("取消", new Il11lI1III1());
            ill1IIIl1lIll.l1IlI1IIII1I();
        }
    }

    public static final class lIIl1I1I implements IlI11IIl1IIl {
        lIIl1I1I() {
        }

        @Override
        public void IIllIl1llII() {
        }
    }

    private final void I1Il1l11II1lI() {
        List<TheDenyPage2> IIllIl1llII2 = l1IIl111II1.IIllIl1llII.IIllIl1llII();
        for (TheDenyPage2 theDenyPage2 : IIllIl1llII2) {
            StringBuilder sb = new StringBuilder();
            sb.append("refreshPage: ");
            sb.append(theDenyPage2);
        }
        DenyPageAdapter denyPageAdapter = this.mAdapter;
        if (denyPageAdapter == null) {
            l1l1lIII11I11.lI1111IllIl1("mAdapter");
            denyPageAdapter = null;
        }
        denyPageAdapter.setNewInstance(IIllIl1llII2);
        l1l1lIII11I11.l1llllI11l111(this, "null cannot be cast to non-null type com.kanyun.kace.AndroidExtensionsBase");
        IIllIl1llII(this, IlIlII1IIII11.lI111l1I1llIl.IllIll1l1l1l1, SwipeRefreshLayout.class).setRefreshing(false);
    }

    public static final void II11lIlI1lll1(DenyPageSettingActivity denyPageSettingActivity, View view) {
        l1l1lIII11I11.IIl1I11I1lI1l(denyPageSettingActivity, "this$0");
        if (!lI11llI11.IIllIl1llII.l1Illll1lI() && Il11IIIllIl.IIllIl1llII() >= 3) {
            lI1111I11I11I.IIllIl1llII.Il11lI1l(denyPageSettingActivity, null, "VIP用户可添加3个以上屏蔽页面。", "DenyPageSettingActivity add", (r22 & 16) != 0 ? "开通VIP" : null, (r22 & 32) != 0 ? "" : null, (r22 & 64) != 0 ? "立即开通" : null, (r22 & QQShare.QQ_SHARE_TITLE_MAX_LENGTH) != 0 ? "取消" : null, (r22 & JceEncryptionConstants.SYMMETRIC_KEY_LENGTH) != 0 ? null : null);
            return;
        }
        Ill1IIIl1lIll ill1IIIl1lIll = new Ill1IIIl1lIll((IllIlI1l1I) denyPageSettingActivity);
        ill1IIIl1lIll.IIlIlIlI111ll("添加屏蔽页面");
        ill1IIIl1lIll.Ill11IIlII1(8388611);
        ill1IIIl1lIll.lI1111IllIl1("1.『快速添加』可直接选择“朋友圈”、“公众号”等页面。\n2.『自定义添加』可添加任意页面。\n3. 系统自带分身应用无法屏蔽。");
        ill1IIIl1lIll.Il1I1l111l1l("快速添加", denyPageSettingActivity.new IIllIl1llII());
        ill1IIIl1lIll.lIllll11l1I1I("自定义添加", denyPageSettingActivity.new IlllIll1I1I());
        ill1IIIl1lIll.l1IlI1IIII1I();
    }

    private final void Il1I1l111l1l(TheDenyPage2 theDenyPage2) {
        List<TheDenyPage2> IIllIl1llII2 = l1IIl111II1.IIllIl1llII.IIllIl1llII();
        DenyPageAdapter denyPageAdapter = null;
        TheDenyPage2 theDenyPage22 = null;
        for (TheDenyPage2 theDenyPage23 : IIllIl1llII2) {
            if (l1l1lIII11I11.lII1lI1Illl(theDenyPage23, theDenyPage2)) {
                theDenyPage22 = theDenyPage23;
            }
        }
        if (theDenyPage22 != null) {
            theDenyPage22.setValid(!theDenyPage22.getValid());
        }
        Il111llIIlIl1.IIllIl1llII iIllIl1llII = Il111llIIlIl1.IIllIl1llII;
        String json = GsonUtils.toJson(IIllIl1llII2);
        l1l1lIII11I11.III11IIll1lI1(json, "toJson(...)");
        iIllIl1llII.IIll11IllI1l(lII111I111I.llll11l11l1, json);
        DenyPageAdapter denyPageAdapter2 = this.mAdapter;
        if (denyPageAdapter2 == null) {
            l1l1lIII11I11.lI1111IllIl1("mAdapter");
        } else {
            denyPageAdapter = denyPageAdapter2;
        }
        denyPageAdapter.setNewInstance(IIllIl1llII2);
    }

    public static final void Ill11IIlII1(DenyPageSettingActivity denyPageSettingActivity) {
        l1l1lIII11I11.IIl1I11I1lI1l(denyPageSettingActivity, "this$0");
        denyPageSettingActivity.I1Il1l11II1lI();
    }

    public static final void l1I111lllI1l1(DenyPageSettingActivity denyPageSettingActivity, BaseQuickAdapter baseQuickAdapter, View view, int i) {
        l1l1lIII11I11.IIl1I11I1lI1l(denyPageSettingActivity, "this$0");
        l1l1lIII11I11.IIl1I11I1lI1l(baseQuickAdapter, "adapter");
        l1l1lIII11I11.IIl1I11I1lI1l(view, "view");
        Object obj = baseQuickAdapter.getData().get(i);
        l1l1lIII11I11.l1llllI11l111(obj, "null cannot be cast to non-null type com.lijianqiang12.silent.component.activity.lock.setting.TheDenyPage2");
        TheDenyPage2 theDenyPage2 = (TheDenyPage2) obj;
        if (lI11llI11.IIllIl1llII.l1Illll1lI() || Il11IIIllIl.IIllIl1llII() < 3 || theDenyPage2.getValid()) {
            denyPageSettingActivity.Il1I1l111l1l(theDenyPage2);
        } else {
            lI1111I11I11I.IIllIl1llII.Il11lI1l(denyPageSettingActivity, null, "VIP用户可添加3个以上屏蔽页面。", "DenyPageSettingActivity reverse", (r22 & 16) != 0 ? "开通VIP" : null, (r22 & 32) != 0 ? "" : null, (r22 & 64) != 0 ? "立即开通" : null, (r22 & QQShare.QQ_SHARE_TITLE_MAX_LENGTH) != 0 ? "取消" : null, (r22 & JceEncryptionConstants.SYMMETRIC_KEY_LENGTH) != 0 ? null : null);
        }
    }

    public static final void lI1111IllIl1(DenyPageSettingActivity denyPageSettingActivity, View view) {
        l1l1lIII11I11.IIl1I11I1lI1l(denyPageSettingActivity, "this$0");
        denyPageSettingActivity.finish();
    }

    public final void lIlI1IIllI1(TheDenyPage2 theDenyPage2) {
        List<TheDenyPage2> IIllIl1llII2 = l1IIl111II1.IIllIl1llII.IIllIl1llII();
        DenyPageAdapter denyPageAdapter = null;
        TheDenyPage2 theDenyPage22 = null;
        for (TheDenyPage2 theDenyPage23 : IIllIl1llII2) {
            if (l1l1lIII11I11.lII1lI1Illl(theDenyPage23, theDenyPage2)) {
                theDenyPage22 = theDenyPage23;
            }
        }
        if (theDenyPage22 != null) {
            IIllIl1llII2.remove(theDenyPage22);
            I1Il1lIl11I.IIllIl1llII.Il11lI1III1("删除成功");
        }
        Il111llIIlIl1.IIllIl1llII iIllIl1llII = Il111llIIlIl1.IIllIl1llII;
        String json = GsonUtils.toJson(IIllIl1llII2);
        l1l1lIII11I11.III11IIll1lI1(json, "toJson(...)");
        iIllIl1llII.IIll11IllI1l(lII111I111I.llll11l11l1, json);
        DenyPageAdapter denyPageAdapter2 = this.mAdapter;
        if (denyPageAdapter2 == null) {
            l1l1lIII11I11.lI1111IllIl1("mAdapter");
        } else {
            denyPageAdapter = denyPageAdapter2;
        }
        denyPageAdapter.setNewInstance(IIllIl1llII2);
    }

    public static final boolean lIllll11l1I1I(DenyPageSettingActivity denyPageSettingActivity, BaseQuickAdapter baseQuickAdapter, View view, int i) {
        l1l1lIII11I11.IIl1I11I1lI1l(denyPageSettingActivity, "this$0");
        l1l1lIII11I11.IIl1I11I1lI1l(baseQuickAdapter, "adapter");
        l1l1lIII11I11.IIl1I11I1lI1l(view, "view");
        Ill1IIIl1lIll ill1IIIl1lIll = new Ill1IIIl1lIll((IllIlI1l1I) denyPageSettingActivity);
        ill1IIIl1lIll.IIlIlIlI111ll("删除");
        ill1IIIl1lIll.lI1111IllIl1("是否删除该记录");
        ill1IIIl1lIll.Il1I1l111l1l("删除", denyPageSettingActivity.new Il11lI1III1(baseQuickAdapter, i));
        ill1IIIl1lIll.lIllll11l1I1I("取消", new lIIl1I1I());
        ill1IIIl1lIll.l1IlI1IIII1I();
        return true;
    }

    @Override
    protected void onCreate(@lIIl1Ill111 Bundle bundle) {
        super.onCreate(bundle);
        setContentView(IlIlII1IIII11.Ill1llIIlIlll.IIll11IllI1l);
        l1l1lIII11I11.l1llllI11l111(this, "null cannot be cast to non-null type com.kanyun.kace.AndroidExtensionsBase");
        ((ImageView) IIllIl1llII(this, IlIlII1IIII11.lI111l1I1llIl.lllI11llI, ImageView.class)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DenyPageSettingActivity.lI1111IllIl1(DenyPageSettingActivity.this, view);
            }
        });
        l1l1lIII11I11.l1llllI11l111(this, "null cannot be cast to non-null type com.kanyun.kace.AndroidExtensionsBase");
        ((ImageView) IIllIl1llII(this, IlIlII1IIII11.lI111l1I1llIl.IIl111llI1, ImageView.class)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DenyPageSettingActivity.II11lIlI1lll1(DenyPageSettingActivity.this, view);
            }
        });
        l1l1lIII11I11.l1llllI11l111(this, "null cannot be cast to non-null type com.kanyun.kace.AndroidExtensionsBase");
        RecyclerView IIllIl1llII2 = IIllIl1llII(this, IlIlII1IIII11.lI111l1I1llIl.IlII11ll11lll, RecyclerView.class);
        l1l1lIII11I11.III11IIll1lI1(IIllIl1llII2, "<get-rv_deny_page>(...)");
        this.recyclerview = IIllIl1llII2;
        DenyPageAdapter denyPageAdapter = null;
        if (IIllIl1llII2 == null) {
            l1l1lIII11I11.lI1111IllIl1("recyclerview");
            IIllIl1llII2 = null;
        }
        IIllIl1llII2.setLayoutManager(new LinearLayoutManager(this));
        this.mAdapter = new DenyPageAdapter(IlIlII1IIII11.Ill1llIIlIlll.l1llII1l1ll, new ArrayList());
        RecyclerView recyclerView = this.recyclerview;
        if (recyclerView == null) {
            l1l1lIII11I11.lI1111IllIl1("recyclerview");
            recyclerView = null;
        }
        RecyclerView.lI111l1I1llIl li111l1i1llil = this.mAdapter;
        if (li111l1i1llil == null) {
            l1l1lIII11I11.lI1111IllIl1("mAdapter");
            li111l1i1llil = null;
        }
        recyclerView.setAdapter(li111l1i1llil);
        l1l1lIII11I11.l1llllI11l111(this, "null cannot be cast to non-null type com.kanyun.kace.AndroidExtensionsBase");
        IIllIl1llII(this, IlIlII1IIII11.lI111l1I1llIl.IllIll1l1l1l1, SwipeRefreshLayout.class).setOnRefreshListener(new SwipeRefreshLayout.IIll11IllI1l() {
            public final void IIllIl1llII() {
                DenyPageSettingActivity.Ill11IIlII1(DenyPageSettingActivity.this);
            }
        });
        DenyPageAdapter denyPageAdapter2 = this.mAdapter;
        if (denyPageAdapter2 == null) {
            l1l1lIII11I11.lI1111IllIl1("mAdapter");
            denyPageAdapter2 = null;
        }
        denyPageAdapter2.setOnItemClickListener(new OnItemClickListener() {
            public final void onItemClick(BaseQuickAdapter baseQuickAdapter, View view, int i) {
                DenyPageSettingActivity.l1I111lllI1l1(DenyPageSettingActivity.this, baseQuickAdapter, view, i);
            }
        });
        DenyPageAdapter denyPageAdapter3 = this.mAdapter;
        if (denyPageAdapter3 == null) {
            l1l1lIII11I11.lI1111IllIl1("mAdapter");
        } else {
            denyPageAdapter = denyPageAdapter3;
        }
        denyPageAdapter.setOnItemLongClickListener(new OnItemLongClickListener() {
            public final boolean onItemLongClick(BaseQuickAdapter baseQuickAdapter, View view, int i) {
                boolean lIllll11l1I1I;
                lIllll11l1I1I = DenyPageSettingActivity.lIllll11l1I1I(DenyPageSettingActivity.this, baseQuickAdapter, view, i);
                return lIllll11l1I1I;
            }
        });
    }

    @Override
    protected void onResume() {
        super.onResume();
        I1Il1l11II1lI();
    }
}