正在查看: Fancy Optimizer v4.6.3 应用的 AntivirusEngineReadyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 AntivirusEngineReadyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.antivirus.ui.activity;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.facebook.login.d;
import com.facebook.login.g;
import com.thinkyeah.common.ui.dialog.c;
import com.thinkyeah.common.ui.view.TitleBar;
import java.util.Calendar;
import java.util.HashMap;
import t4.e;
import t4.f;
public class AntivirusEngineReadyActivity extends v7.a<hl.b> {
public static final int l = 0;
public static class a extends c<AntivirusEngineReadyActivity> {
public static final int c = 0;
@NonNull
public final Dialog onCreateDialog(@Nullable Bundle bundle) {
c.a aVar = new c.a(getContext());
aVar.g(2131886710);
aVar.c(2131886651);
int i = 0;
SharedPreferences sharedPreferences = getContext().getSharedPreferences("antivirus", 0);
if (sharedPreferences == null ? false : sharedPreferences.getBoolean("has_deep_scan", false)) {
aVar.d(2131886478, new e(this, i));
int color = ((AntivirusEngineReadyActivity) getActivity()).getColor(2131100607);
aVar.r = true;
aVar.s = color;
aVar.e(2131887265, new f(this, 0));
} else {
aVar.e(2131886478, new g(this, 1));
aVar.d(2131887265, new t4.g(this, i));
}
return aVar.a();
}
}
public final void X2(boolean z10) {
Intent intent = new Intent((Context) this, (Class<?>) AntivirusMainActivity.class);
intent.putExtra("deep_scan", z10);
startActivity(intent);
tk.b a10 = tk.b.a();
HashMap hashMap = new HashMap();
hashMap.put("deep_scan", Boolean.valueOf(z10));
a10.b("scan_virus", hashMap);
finish();
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558435);
TitleBar.a configure = findViewById(2131363196).getConfigure();
configure.e(2131887864);
configure.g(new d(this, 1));
configure.a();
((Button) findViewById(2131361998)).setOnClickListener(new t4.d(this, 0));
TextView textView = (TextView) findViewById(2131363678);
d7.a a10 = d7.a.a(this);
a10.getClass();
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(System.currentTimeMillis());
String format = String.format(ml.d.c(), "%s%s%02d%02d", "13", String.valueOf(calendar.get(1)).substring(2), Integer.valueOf((calendar.get(2) + 1) * 2), Integer.valueOf(calendar.get(5) * 2));
try {
long parseLong = Long.parseLong(format);
Context context = a10.b;
SharedPreferences sharedPreferences = context.getSharedPreferences("virus_scan", 0);
long j = sharedPreferences != null ? sharedPreferences.getLong("pattern_display_version", 0L) : 0L;
if (parseLong > j) {
SharedPreferences sharedPreferences2 = context.getSharedPreferences("virus_scan", 0);
SharedPreferences.Editor edit = sharedPreferences2 == null ? null : sharedPreferences2.edit();
if (edit != null) {
edit.putLong("pattern_display_version", parseLong);
edit.apply();
}
} else {
format = String.valueOf(j);
}
} catch (NumberFormatException unused) {
}
textView.setText(getString(2131887766, format));
}
}