正在查看: Fancy Optimizer v4.6.3 应用的 GameAssistantMainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 GameAssistantMainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.gameassistant.ui.activity;
import android.app.Dialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import c.e;
import c.p;
import com.adtiny.core.d;
import com.facebook.internal.i0;
import com.fancyclean.boost.gameassistant.model.GameApp;
import com.fancyclean.boost.gameassistant.ui.presenter.GameAssistantMainPresenter;
import com.thinkyeah.common.ui.dialog.c;
import com.thinkyeah.common.ui.view.ThinkRecyclerView;
import com.thinkyeah.common.ui.view.TitleBar;
import gl.d;
import java.util.ArrayList;
import java.util.List;
import t8.b;
import u8.c;
import vj.h;
@d(GameAssistantMainPresenter.class)
public class GameAssistantMainActivity extends v7.a<c> implements u8.d {
public static final h o = new h("GameAssistantMainActivity");
public t8.b l;
public d.d m;
public final a n = new a();
public class a implements b.d {
public a() {
}
}
public static class b extends com.thinkyeah.common.ui.dialog.c<GameAssistantMainActivity> {
public static final int d = 0;
public boolean c;
@NonNull
public final Dialog onCreateDialog(Bundle bundle) {
Bundle arguments = getArguments();
if (arguments != null) {
this.c = arguments.getBoolean("shud_cancel_finish", false);
}
View inflate = View.inflate(getContext(), 2131558602, null);
Button button = (Button) inflate.findViewById(2131361991);
Button button2 = (Button) inflate.findViewById(2131362000);
button.setOnClickListener(new i0(this, 12));
button2.setOnClickListener(new t4.b(this, 11));
c.a aVar = new c.a(getContext());
aVar.y = 8;
aVar.x = inflate;
return aVar.a();
}
}
public final boolean X2() {
SharedPreferences sharedPreferences = getSharedPreferences("game_booster", 0);
if (sharedPreferences == null ? true : sharedPreferences.getBoolean("should_create_game_shortcut", true)) {
List<GameApp> list = this.l.i;
if ((list == null ? 0 : list.size()) > 0) {
int i = b.d;
Bundle bundle = new Bundle();
bundle.putBoolean("shud_cancel_finish", true);
b bVar = new b();
bVar.setArguments(bundle);
bVar.j0(this, "SuggestCreateGameShortcutDialogFragment");
return false;
}
}
return true;
}
@Override
public final void f2(ArrayList arrayList) {
t8.b bVar = this.l;
bVar.i = arrayList;
boolean z10 = arrayList != null && arrayList.size() > 6;
bVar.n = z10;
bVar.m = z10;
if (z10) {
bVar.j = bVar.i.subList(0, 6);
}
this.l.notifyDataSetChanged();
}
public final void onBackPressed() {
if (X2()) {
super/*androidx.activity.ComponentActivity*/.onBackPressed();
}
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558485);
TitleBar findViewById = findViewById(2131363196);
ArrayList arrayList = new ArrayList();
arrayList.add(new TitleBar.i(new TitleBar.b(), new TitleBar.e(2131886512), new p(this, 11)));
TitleBar.a configure = findViewById.getConfigure();
configure.e(2131887908);
configure.a.h = arrayList;
configure.c(true);
configure.g(new t4.a(this, 11));
configure.a();
ThinkRecyclerView findViewById2 = findViewById(2131363009);
GridLayoutManager gridLayoutManager = new GridLayoutManager(this, 3);
gridLayoutManager.setSpanSizeLookup(new s8.c(this, gridLayoutManager));
findViewById2.setLayoutManager(gridLayoutManager);
t8.b bVar = new t8.b(this);
this.l = bVar;
bVar.l = this.n;
findViewById2.setAdapter(bVar);
findViewById2.setItemAnimator((RecyclerView.ItemAnimator) null);
g9.c.a(getIntent());
this.m = com.adtiny.core.d.b().e(new e(this, 12));
if (bundle == null) {
SharedPreferences sharedPreferences = getSharedPreferences("game_booster", 0);
SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
if (edit != null) {
edit.putBoolean("has_opened_game_boost", true);
edit.apply();
}
SharedPreferences sharedPreferences2 = getSharedPreferences("game_booster", 0);
SharedPreferences.Editor edit2 = sharedPreferences2 != null ? sharedPreferences2.edit() : null;
if (edit2 == null) {
return;
}
edit2.putBoolean("should_remind_new_games", false);
edit2.apply();
}
}
public final void onDestroy() {
d.d dVar = this.m;
if (dVar != null) {
dVar.destroy();
}
super/*il.b*/.onDestroy();
}
public final void onStart() {
super/*il.b*/.onStart();
((u8.c) W2()).C();
g9.c.a(getIntent());
if (com.adtiny.core.d.b().c()) {
com.adtiny.core.d.b().h(this, "I_GameBoost", (d.l) null);
}
}
@Override
public final Context getContext() {
return this;
}
}