正在查看: Fancy Optimizer v4.6.3 应用的 BreakInAlertSettingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 BreakInAlertSettingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.applock.ui.activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.annotation.NonNull;
import com.fancyclean.boost.applock.config.ConfigChangeController;
import com.thinkyeah.common.ui.dialog.c;
import com.thinkyeah.common.ui.thinklist.a;
import com.thinkyeah.common.ui.view.TitleBar;
import java.util.ArrayList;
import java.util.HashMap;
import jl.c;
import ok.a;
import t5.u;
public class BreakInAlertSettingActivity extends com.fancyclean.boost.applock.ui.activity.b {
public static final int w = 0;
public jl.d s;
public ok.a t;
public final String[] r = {"android.permission.CAMERA"};
public final a u = new a();
public final b v = new b();
public class a implements a.c {
public a() {
}
public final boolean a(int i, boolean z10) {
if (i != 101 || z10) {
return true;
}
BreakInAlertSettingActivity breakInAlertSettingActivity = BreakInAlertSettingActivity.this;
ok.a aVar = breakInAlertSettingActivity.t;
String[] strArr = breakInAlertSettingActivity.r;
if (aVar.a(strArr)) {
return true;
}
breakInAlertSettingActivity.t.e(strArr, (a.b) null, false);
return false;
}
public final void b(int i, boolean z10) {
if (i != 101) {
return;
}
n5.a.a(BreakInAlertSettingActivity.this).b(z10);
if (z10) {
tk.b.a().b("enable_break_in_alerts", (HashMap) null);
} else {
tk.b.a().b("disable_break_in_alerts", (HashMap) null);
}
}
}
public class b implements c.a {
public b() {
}
public final void c(int i, int i10) {
if (i10 != 201) {
return;
}
new c().j0(BreakInAlertSettingActivity.this, "ChooseEntriesAllowedCountDialogFragment");
}
}
public static class c extends com.thinkyeah.common.ui.dialog.c<BreakInAlertSettingActivity> {
public class a implements DialogInterface.OnClickListener {
public a() {
}
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
c cVar = c.this;
?? r02 = (BreakInAlertSettingActivity) cVar.getActivity();
if (r02 != 0) {
int i10 = BreakInAlertSettingActivity.w;
i5.b b = i5.b.b(r02);
int[] iArr = b.e;
boolean z10 = true;
int i11 = i < iArr.length ? iArr[i] : 1;
jl.d dVar = r02.s;
String[] stringArray = b.a.getResources().getStringArray(2130903047);
int[] iArr2 = b.e;
int length = iArr2.length;
int i12 = 0;
while (true) {
if (i12 >= length) {
i12 = 0;
break;
} else if (i11 == iArr2[i12]) {
break;
} else {
i12++;
}
}
dVar.setValue(i12 < stringArray.length ? stringArray[i12] : "Error:int[] ,string[] res don't match");
Context context = n5.a.a(r02).a;
SharedPreferences sharedPreferences = context.getSharedPreferences("app_lock", 0);
SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
if (edit == null) {
z10 = false;
} else {
edit.putInt("wrong_password_entries_count", i11);
edit.apply();
}
if (z10) {
ConfigChangeController.a(12, context);
}
}
cVar.O(cVar.getActivity());
}
}
@NonNull
public final Dialog onCreateDialog(Bundle bundle) {
String[] stringArray = getResources().getStringArray(2130903047);
i5.b b = i5.b.b(getContext());
int i = 0;
SharedPreferences sharedPreferences = getContext().getSharedPreferences("app_lock", 0);
int i10 = sharedPreferences != null ? sharedPreferences.getInt("wrong_password_entries_count", 1) : 1;
int[] iArr = b.e;
int length = iArr.length;
int i11 = 0;
while (true) {
if (i11 >= length) {
break;
}
if (i10 == iArr[i11]) {
i = i11;
break;
}
i11++;
}
c.a aVar = new c.a(getContext());
aVar.g(2131887043);
aVar.f(stringArray, i, new a());
return aVar.a();
}
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558453);
ok.a aVar = new ok.a(this, 2131887457);
this.t = aVar;
aVar.c();
TitleBar.a configure = findViewById(2131363196).getConfigure();
configure.e(2131887457);
configure.g(new u(this));
configure.a();
ArrayList arrayList = new ArrayList();
String string = getString(2131887033);
int i = 0;
SharedPreferences sharedPreferences = getSharedPreferences("app_lock", 0);
com.thinkyeah.common.ui.thinklist.a aVar2 = new com.thinkyeah.common.ui.thinklist.a(string, this, sharedPreferences == null ? false : sharedPreferences.getBoolean("break_in_alert_enabled", false), 101);
aVar2.setToggleButtonClickListener(this.u);
arrayList.add(aVar2);
findViewById(2131363189).setAdapter(new jl.b(arrayList));
ArrayList arrayList2 = new ArrayList();
jl.d dVar = new jl.d(this, 201, getString(2131887042));
i5.b b10 = i5.b.b(this);
SharedPreferences sharedPreferences2 = getSharedPreferences("app_lock", 0);
int i10 = sharedPreferences2 != null ? sharedPreferences2.getInt("wrong_password_entries_count", 1) : 1;
String[] stringArray = b10.a.getResources().getStringArray(2130903047);
int[] iArr = b10.e;
int length = iArr.length;
int i11 = 0;
while (true) {
if (i11 >= length) {
break;
}
if (i10 == iArr[i11]) {
i = i11;
break;
}
i11++;
}
dVar.setValue(i < stringArray.length ? stringArray[i] : "Error:int[] ,string[] res don't match");
dVar.setThinkItemClickListener(this.v);
arrayList2.add(dVar);
this.s = dVar;
findViewById(2131363190).setAdapter(new jl.b(arrayList2));
}
public final void onDestroy() {
this.t.f();
super/*il.b*/.onDestroy();
}
}