Flash Cleaner v1.0.14版本的 MD5 值为:afbed0179616af7c25ad332b251e759c

以下内容为反编译后的 MainActivity.java 源代码,内容仅作参考


package com.applab.flashcleaner.screen.main;

import ad.f;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowInsets;
import android.widget.LinearLayout;
import bb.g;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.applab.flashcleaner.CleanMasterApp;
import com.applab.flashcleaner.apk.R;
import com.applab.flashcleaner.screen.main.MainActivity;
import com.applab.flashcleaner.service.ServiceManager;
import com.applab.flashcleaner.widget.CustomViewPager;
import com.bumptech.glide.d;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import d6.a;
import f0.l1;
import f7.b;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import kotlin.jvm.internal.j;
import lf.n;
import lf.o;
import lf.p;
import lf.s;
import ne.t;
import pf.e;
import pf.h;
import s6.c;
import tf.l;
import x5.i;
public final class MainActivity extends c implements a {
    public static final int f5337o = 0;
    public final int f5338l = 101610;
    public i f5339m;
    @BindView
    public BottomNavigationView mBottomNavigationView;
    @BindView
    public CustomViewPager mViewPagerHome;
    public c7.a f5340n;

    @Override
    public final void c(e6.a aVar) {
    }

    @Override
    public final void onCreate(Bundle bundle) {
        boolean z10;
        LinkedHashMap linkedHashMap;
        String str;
        String str2;
        Object[] array;
        Map unmodifiableMap;
        e d8;
        String str3;
        super.onCreate(bundle);
        setContentView(R.layout.activity_main);
        ButterKnife.b(this);
        Window window = getWindow();
        kotlin.jvm.internal.i.m0(window, false);
        window.setStatusBarColor(0);
        window.setNavigationBarColor(-1);
        BottomNavigationView bottomNavigationView = this.mBottomNavigationView;
        j.z(bottomNavigationView);
        bottomNavigationView.setOnApplyWindowInsetsListener(new View.OnApplyWindowInsetsListener() {
            @Override
            public final WindowInsets onApplyWindowInsets(View view, WindowInsets insets) {
                int i10 = MainActivity.f5337o;
                MainActivity this$0 = MainActivity.this;
                j.C(this$0, "this$0");
                j.C(insets, "insets");
                BottomNavigationView bottomNavigationView2 = this$0.mBottomNavigationView;
                j.z(bottomNavigationView2);
                LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(bottomNavigationView2.getLayoutParams());
                layoutParams.bottomMargin = insets.getSystemWindowInsetBottom() + layoutParams.bottomMargin;
                BottomNavigationView bottomNavigationView3 = this$0.mBottomNavigationView;
                j.z(bottomNavigationView3);
                bottomNavigationView3.setLayoutParams(layoutParams);
                insets.consumeSystemWindowInsets();
                return insets;
            }
        });
        l1 e10 = l1.e();
        if (!e10.f8389a.contains(this)) {
            e10.f8389a.add(this);
        }
        int i10 = Build.VERSION.SDK_INT;
        if (i10 >= 33 && n2.e.a(this, "android.permission.POST_NOTIFICATIONS") != 0) {
            requestPermissions(new String[]{"android.permission.POST_NOTIFICATIONS"}, this.f5338l);
            z10 = false;
        } else {
            z10 = true;
        }
        if (z10) {
            Intent intent = new Intent(this, ServiceManager.class);
            if (i10 >= 26) {
                n2.e.e(this, intent);
            } else {
                startService(intent);
            }
        }
        CleanMasterApp cleanMasterApp = CleanMasterApp.f5157f;
        j.z(cleanMasterApp);
        if (cleanMasterApp.f5158a != null) {
            this.f5339m = new i(v());
            this.f5340n = new c7.a();
            i iVar = this.f5339m;
            j.z(iVar);
            c7.a aVar = this.f5340n;
            String string = getString(R.string.title_home);
            iVar.f18274f.add(aVar);
            iVar.f18275g.add(string);
            i iVar2 = this.f5339m;
            j.z(iVar2);
            b bVar = new b();
            String string2 = getString(R.string.title_persional);
            iVar2.f18274f.add(bVar);
            iVar2.f18275g.add(string2);
            CustomViewPager customViewPager = this.mViewPagerHome;
            j.z(customViewPager);
            customViewPager.setPagingEnabled(false);
            CustomViewPager customViewPager2 = this.mViewPagerHome;
            j.z(customViewPager2);
            i iVar3 = this.f5339m;
            j.z(iVar3);
            customViewPager2.setOffscreenPageLimit(iVar3.c());
            CustomViewPager customViewPager3 = this.mViewPagerHome;
            j.z(customViewPager3);
            customViewPager3.setAdapter(this.f5339m);
            BottomNavigationView bottomNavigationView2 = this.mBottomNavigationView;
            j.z(bottomNavigationView2);
            bottomNavigationView2.setOnNavigationItemSelectedListener(new d3.b(7, this));
            BottomNavigationView bottomNavigationView3 = this.mBottomNavigationView;
            j.z(bottomNavigationView3);
            bottomNavigationView3.setSelectedItemId(R.id.navigation_home);
            w7.a V = f.V(getIntent().getIntExtra("data open result screen", 0));
            if (V == null) {
                w7.a V2 = f.V(getIntent().getIntExtra("data open function", 0));
                if (V2 != null) {
                    G(V2);
                } else {
                    w7.a V3 = f.V(getIntent().getIntExtra("alarm open funtion", 0));
                    if (V3 != null) {
                        G(V3);
                        if (V3 == w7.a.PHONE_BOOST) {
                            t7.j.k();
                            t7.j.f(10004);
                            com.bumptech.glide.e.O0(7200000L);
                            str3 = "alarm phone boost";
                        } else if (V3 == w7.a.CPU_COOLER) {
                            t7.j.k();
                            t7.j.f(10005);
                            com.bumptech.glide.e.O0(7200000L);
                            str3 = "alarm cpu cooler";
                        } else if (V3 == w7.a.POWER_SAVING) {
                            t7.j.k();
                            t7.j.f(10006);
                            com.bumptech.glide.e.O0(7200000L);
                            str3 = "alarm battery save";
                        } else if (V3 == w7.a.JUNK_FILES) {
                            t7.j.k();
                            t7.j.f(10007);
                        }
                        d.z0(this, str3, 7200000L);
                    } else if (getIntent().getBooleanExtra("result deep clean data", false)) {
                        V = w7.a.DEEP_CLEAN;
                    }
                }
                String str4 = "https://applabclick.com/api/v1/version?app_property=26";
                linkedHashMap = new LinkedHashMap();
                ArrayList arrayList = new ArrayList(20);
                if (!gf.i.f1("https://applabclick.com/api/v1/version?app_property=26", "ws:", true)) {
                    str = "ps://applabclick.com/api/v1/version?app_property=26";
                    str2 = "http:";
                } else {
                    if (gf.i.f1("https://applabclick.com/api/v1/version?app_property=26", "wss:", true)) {
                        str = "s://applabclick.com/api/v1/version?app_property=26";
                        str2 = "https:";
                    }
                    j.C(str4, "<this>");
                    o oVar = new o();
                    oVar.d(null, str4);
                    p a10 = oVar.a();
                    if (linkedHashMap.isEmpty()) {
                        linkedHashMap = new LinkedHashMap();
                    }
                    Object cast = Object.class.cast("cancelRequest");
                    j.z(cast);
                    linkedHashMap.put(Object.class, cast);
                    array = arrayList.toArray(new String[0]);
                    if (array != null) {
                        n nVar = new n((String[]) array);
                        byte[] bArr = mf.b.f13413a;
                        if (linkedHashMap.isEmpty()) {
                            unmodifiableMap = t.f13752a;
                        } else {
                            unmodifiableMap = Collections.unmodifiableMap(new LinkedHashMap(linkedHashMap));
                            j.B(unmodifiableMap, "{\n    Collections.unmodi…(LinkedHashMap(this))\n  }");
                        }
                        h hVar = new h(new s(), new ed.b(a10, "GET", nVar, (g) null, unmodifiableMap), false);
                        b7.b bVar2 = new b7.b(this);
                        if (hVar.f14584g.compareAndSet(false, true)) {
                            l lVar = l.f16269a;
                            hVar.f14585h = l.f16269a.g();
                            hVar.f14582e.getClass();
                            uc.a aVar2 = hVar.f14578a.f13000a;
                            e eVar = new e(hVar, bVar2);
                            aVar2.getClass();
                            synchronized (aVar2) {
                                ((ArrayDeque) aVar2.f16843e).add(eVar);
                                if (!hVar.f14580c && (d8 = aVar2.d(((p) hVar.f14579b.f8063b).f12990d)) != null) {
                                    eVar.f14573b = d8.f14573b;
                                }
                            }
                            aVar2.i();
                            return;
                        }
                        throw new IllegalStateException("Already Executed".toString());
                    }
                    throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T of kotlin.collections.ArraysKt__ArraysJVMKt.toTypedArray>");
                }
                str4 = j.u0(str, str2);
                j.C(str4, "<this>");
                o oVar2 = new o();
                oVar2.d(null, str4);
                p a102 = oVar2.a();
                if (linkedHashMap.isEmpty()) {
                }
                Object cast2 = Object.class.cast("cancelRequest");
                j.z(cast2);
                linkedHashMap.put(Object.class, cast2);
                array = arrayList.toArray(new String[0]);
                if (array != null) {
                }
            }
            H(V);
            String str42 = "https://applabclick.com/api/v1/version?app_property=26";
            linkedHashMap = new LinkedHashMap();
            ArrayList arrayList2 = new ArrayList(20);
            if (!gf.i.f1("https://applabclick.com/api/v1/version?app_property=26", "ws:", true)) {
            }
            str42 = j.u0(str, str2);
            j.C(str42, "<this>");
            o oVar22 = new o();
            oVar22.d(null, str42);
            p a1022 = oVar22.a();
            if (linkedHashMap.isEmpty()) {
            }
            Object cast22 = Object.class.cast("cancelRequest");
            j.z(cast22);
            linkedHashMap.put(Object.class, cast22);
            array = arrayList2.toArray(new String[0]);
            if (array != null) {
            }
        } else {
            j.v0("completedService");
            throw null;
        }
    }

    @Override
    public final void onDestroy() {
        super.onDestroy();
        l1.e().f8389a.remove(this);
    }

    @Override
    public final void onRequestPermissionsResult(int i10, String[] permissions, int[] grantResults) {
        j.C(permissions, "permissions");
        j.C(grantResults, "grantResults");
        super.onRequestPermissionsResult(i10, permissions, grantResults);
        if (i10 == this.f5338l && grantResults[0] == 0) {
            Intent intent = new Intent(this, ServiceManager.class);
            if (Build.VERSION.SDK_INT >= 26) {
                n2.e.e(this, intent);
            } else {
                startService(intent);
            }
        }
    }
}