Fast n Clean Light v1.2.165版本的 MD5 值为:035a902a6970d838ef35e463f33c3cd5
以下内容为反编译后的 MainActivity.java 源代码,内容仅作参考
package com.samoukale.fastncleanlight.screen.main;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import androidx.compose.ui.platform.ComposeView;
import b6.o;
import c6.g;
import com.google.firebase.messaging.m;
import com.samoukale.fastncleanlight.apk.R;
import com.samoukale.fastncleanlight.screen.main.MainActivity;
import com.samoukale.fastncleanlight.screen.main.personal.FragmentPersional;
import com.samoukale.fastncleanlight.screen.main.tool.FragmentTool;
import com.samoukale.fastncleanlight.service.ServiceManager;
import com.samoukale.fastncleanlight.widget.CustomViewPager;
import e0.l1;
import ec.k;
import f.b;
import java.util.ArrayList;
import jc.a;
import kotlin.jvm.internal.i;
import m2.f;
import org.json.JSONObject;
import qa.d;
import w.p0;
import yc.c;
public final class MainActivity extends c implements a {
public static final int f8183j = 0;
public CustomViewPager f8184i;
@Override
public final void l(b bVar) {
if (bVar instanceof kc.c) {
G(((kc.c) bVar).f11854k);
}
}
@Override
public final void onCreate(Bundle bundle) {
String str;
super.onCreate(bundle);
setContentView(R.layout.activity_main);
l1 k10 = l1.k();
if (!k10.f8808a.contains(this)) {
k10.f8808a.add(this);
}
Intent intent = new Intent(this, (Class<?>) ServiceManager.class);
if (Build.VERSION.SDK_INT >= 26) {
f.d(this, intent);
} else {
startService(intent);
}
String string = getString(R.string.app_property);
u9.a.m(string, "context.getString(R.string.app_property)");
String str2 = ud.a.f16110a;
b.W(this).a(new g(0, "https://applabclick.com/api/v1/version?app_property=".concat(string), null, new o() {
@Override
public final void b(Object obj) {
JSONObject jSONObject = (JSONObject) obj;
int i3 = MainActivity.f8183j;
MainActivity mainActivity = MainActivity.this;
u9.a.n(mainActivity, "this$0");
u9.a.n(jSONObject, "response");
try {
if (!u9.a.e("1.2.165", jSONObject.getString("version"))) {
new wd.g().show(mainActivity.v(), "UdateDialog");
}
} catch (Throwable th) {
d.a().b(th);
}
}
}, new m()));
((ComposeView) findViewById(R.id.exit_dialog)).setContent(com.bumptech.glide.c.w(new p0(9, this), true, 1495691190));
k kVar = new k(v());
hd.c cVar = new hd.c();
cVar.setArguments(new Bundle());
String string2 = getString(R.string.title_home);
ArrayList arrayList = kVar.f9256f;
arrayList.add(cVar);
ArrayList arrayList2 = kVar.f9257g;
arrayList2.add(string2);
FragmentTool fragmentTool = new FragmentTool();
fragmentTool.setArguments(new Bundle());
String string3 = getString(R.string.title_tool);
arrayList.add(fragmentTool);
arrayList2.add(string3);
FragmentPersional fragmentPersional = new FragmentPersional();
fragmentPersional.setArguments(new Bundle());
String string4 = getString(R.string.title_persional);
arrayList.add(fragmentPersional);
arrayList2.add(string4);
View findViewById = findViewById(R.id.viewpager_home);
u9.a.m(findViewById, "findViewById(R.id.viewpager_home)");
CustomViewPager customViewPager = (CustomViewPager) findViewById;
this.f8184i = customViewPager;
customViewPager.setPagingEnabled(false);
CustomViewPager customViewPager2 = this.f8184i;
if (customViewPager2 != null) {
customViewPager2.setOffscreenPageLimit(kVar.c());
CustomViewPager customViewPager3 = this.f8184i;
if (customViewPager3 != null) {
customViewPager3.setAdapter(kVar);
wd.b h5 = ha.b.h(getIntent().getIntExtra("data open result screen", 0));
if (h5 != null) {
H(h5);
} else {
wd.b h6 = ha.b.h(getIntent().getIntExtra("data open function", 0));
if (h6 != null) {
wd.b[] bVarArr = ha.b.f10293i;
for (int i3 = 0; i3 < 3; i3++) {
if (bVarArr[i3] == h6) {
u9.a.k(null);
throw null;
}
}
wd.b[] bVarArr2 = ha.b.f10294j;
for (int i10 = 0; i10 < 2; i10++) {
if (bVarArr2[i10] == h6) {
u9.a.k(null);
throw null;
}
}
G(h6);
} else {
wd.b h10 = ha.b.h(getIntent().getIntExtra("alarm open funtion", 0));
if (h10 != null) {
G(h10);
if (h10 == wd.b.PHONE_BOOST) {
ib.d.t(5);
i.d0(7200000L);
str = "alarm phone boost";
} else if (h10 == wd.b.CPU_COOLER) {
ib.d.t(6);
i.d0(7200000L);
str = "alarm cpu cooler";
} else if (h10 == wd.b.POWER_SAVING) {
ib.d.t(7);
i.d0(7200000L);
str = "alarm battery save";
} else if (h10 == wd.b.JUNK_FILES) {
ib.d.t(8);
}
b.q0(this, str, 7200000L);
} else if (getIntent().getBooleanExtra("result deep clean data", false)) {
u9.a.k(null);
throw null;
}
}
}
SharedPreferences sharedPreferences = i.f11874n;
u9.a.k(sharedPreferences);
if (sharedPreferences.getBoolean("LETS_START", true)) {
b.q0(this, "ALARM_LETS_START", 60000L);
}
SharedPreferences sharedPreferences2 = i.f11874n;
u9.a.k(sharedPreferences2);
if (sharedPreferences2.getBoolean("LETS_START_1", true)) {
b.q0(this, "ALARM_LETS_START_1", 1200000L);
}
SharedPreferences sharedPreferences3 = i.f11874n;
u9.a.k(sharedPreferences3);
if (sharedPreferences3.getBoolean("LETS_START_2", true)) {
b.q0(this, "ALARM_LETS_START_2", 86400000L);
}
b.q0(this, "ALARM_REACTIVATION_1", 3 * 86400000);
b.q0(this, "ALARM_REACTIVATION_2", 5 * 86400000);
b.q0(this, "ALARM_REACTIVATION_3", 7 * 86400000);
b.q0(this, "ALARM_REACTIVATION_4", 14 * 86400000);
b.q0(this, "ALARM_REACTIVATION_5", 21 * 86400000);
b.q0(this, "ALARM_REACTIVATION_6", 86400000 * 30);
return;
}
u9.a.a0("mViewPagerHome");
throw null;
}
u9.a.a0("mViewPagerHome");
throw null;
}
@Override
public final void onDestroy() {
super.onDestroy();
l1.k().f8808a.remove(this);
}
@Override
public final void onResume() {
super.onResume();
}
}