正在查看: Fancy Optimizer v4.6.3 应用的 AppDiaryActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 AppDiaryActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.appdiary.ui.activity;
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.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import androidx.viewpager2.widget.ViewPager2;
import c7.l;
import com.adtiny.core.d;
import com.google.android.material.tabs.e;
import com.thinkyeah.common.ui.view.TitleBar;
import ek.m;
import f.g;
import hl.b;
import java.util.ArrayList;
public class AppDiaryActivity extends v7.a<b> {
public static final int o = 0;
public View l;
public TitleBar m;
public TitleBar.i n;
public static class a extends FragmentStateAdapter {
public final Context i;
public a(FragmentActivity fragmentActivity) {
super(fragmentActivity);
this.i = fragmentActivity.getApplicationContext();
}
@NonNull
public final Fragment createFragment(int i) {
return i == 0 ? new e5.a() : new e5.b();
}
public final int getItemCount() {
return 2;
}
}
public final void finish() {
d.b().h(this, "I_AppDiary", (d.l) null);
super/*android.app.Activity*/.finish();
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558440);
ArrayList arrayList = new ArrayList();
TitleBar.i iVar = new TitleBar.i(new TitleBar.b(2131231531), new TitleBar.e(2131887457), new g(this, 5));
this.n = iVar;
arrayList.add(iVar);
TitleBar findViewById = findViewById(2131363196);
this.m = findViewById;
TitleBar.a configure = findViewById.getConfigure();
configure.e(2131887866);
configure.g(new t4.b(this, 3));
configure.a.h = arrayList;
configure.a();
ViewPager2 findViewById2 = findViewById(2131363869);
findViewById2.setOffscreenPageLimit(2);
a aVar = new a(this);
findViewById2.setAdapter(aVar);
new e(findViewById(2131363205), findViewById2, new c.e(aVar, 7)).a();
View findViewById3 = findViewById(2131363785);
this.l = findViewById3;
((Button) findViewById3.findViewById(2131362009)).setOnClickListener(new com.facebook.login.d(this, 2));
}
public final void onDestroy() {
m.a(this);
super/*il.b*/.onDestroy();
}
public final void onResume() {
super/*wk.a*/.onResume();
m.a(this);
}
public final void onStart() {
super/*il.b*/.onStart();
if (l.e(this)) {
this.l.setVisibility(8);
this.n.e = true;
} else {
this.l.setVisibility(0);
this.n.e = false;
}
this.m.d();
SharedPreferences sharedPreferences = getSharedPreferences("app_diary", 0);
SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
if (edit == null) {
return;
}
edit.putBoolean("has_entered_app_diary", true);
edit.apply();
}
}