正在查看: Fancy Optimizer v4.6.3 应用的 SecurityQuestionActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 SecurityQuestionActivity.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 android.text.TextUtils;
import android.widget.EditText;
import android.widget.TextView;
import androidx.annotation.NonNull;
import com.thinkyeah.common.ui.dialog.c;
import com.thinkyeah.common.ui.view.TitleBar;
import java.util.ArrayList;
import java.util.List;
import t5.x0;
import t5.y0;
public class SecurityQuestionActivity extends b {
public static final int t = 0;
public TextView r;
public EditText s;
public static class a extends com.thinkyeah.common.ui.dialog.c<SecurityQuestionActivity> {
public class DialogInterfaceOnClickListenerC0066a implements DialogInterface.OnClickListener {
public final List c;
public DialogInterfaceOnClickListenerC0066a(ArrayList arrayList) {
this.c = arrayList;
}
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
a aVar = a.this;
SecurityQuestionActivity activity = aVar.getActivity();
if (activity != null) {
activity.r.setText(((c.b) this.c.get(i)).a.toString());
activity.s.requestFocus();
activity.s.setText((CharSequence) null);
}
aVar.dismiss();
}
}
@NonNull
public final Dialog onCreateDialog(Bundle bundle) {
Context context = getContext();
int i = SecurityQuestionActivity.t;
String[] stringArray = context.getResources().getStringArray(2130903046);
ArrayList arrayList = new ArrayList(stringArray.length);
int i10 = 0;
for (String str : stringArray) {
c.b bVar = new c.b(str);
boolean z10 = true;
if (i10 != 1) {
z10 = false;
}
bVar.b = z10;
arrayList.add(bVar);
i10++;
}
c.a aVar = new c.a(getContext());
aVar.g(2131887378);
DialogInterfaceOnClickListenerC0066a dialogInterfaceOnClickListenerC0066a = new DialogInterfaceOnClickListenerC0066a(arrayList);
aVar.v = arrayList;
aVar.w = dialogInterfaceOnClickListenerC0066a;
return aVar.a();
}
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558447);
TitleBar.a configure = findViewById(2131363196).getConfigure();
configure.e(2131887948);
configure.g(new x0(this));
configure.a();
findViewById(2131363819).setOnClickListener(new e(this));
this.r = (TextView) findViewById(2131363646);
SharedPreferences sharedPreferences = getSharedPreferences("app_lock", 0);
String string = sharedPreferences == null ? null : sharedPreferences.getString("security_question", null);
if (string == null) {
string = getResources().getStringArray(2130903046)[0];
}
this.r.setText(string);
this.s = (EditText) findViewById(2131362185);
SharedPreferences sharedPreferences2 = getSharedPreferences("app_lock", 0);
String string2 = sharedPreferences2 == null ? null : sharedPreferences2.getString("encrypted_security_answer", null);
this.s.setText(TextUtils.isEmpty(string2) ? null : sk.a.a(i5.e.b, string2));
findViewById(2131362024).setOnClickListener(new y0(this));
}
}