正在查看: Fancy Optimizer v4.6.3 应用的 NotificationCleanMainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 NotificationCleanMainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.notificationclean.ui.activity;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.Property;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.LinearLayoutManager;
import c7.l;
import com.applovin.exoplayer2.ui.n;
import com.facebook.stetho.server.http.HttpStatus;
import com.fancyclean.boost.notificationclean.ui.presenter.NotificationCleanMainPresenter;
import com.thinkyeah.common.ui.view.ThinkRecyclerView;
import com.thinkyeah.common.ui.view.TitleBar;
import f.g;
import gl.d;
import java.util.ArrayList;
import ma.c;
import nn.e;
import qa.a;
import vj.h;
@d(NotificationCleanMainPresenter.class)
public class NotificationCleanMainActivity extends v7.d<ra.a> implements ra.b {
public static final h F = new h("NotificationCleanMainActivity");
public c C;
public ThinkRecyclerView q;
public qa.a r;
public RelativeLayout s;
public TextView t;
public ImageView u;
public Button v;
public Handler w;
public int f209y;
public int f210z;
public int f208x = 0;
public final i.b A = new i.b("N_TR_NotificationClean");
public boolean B = false;
public final a D = new a();
public final b E = new b();
public class a implements a.b {
public a() {
}
}
public class b implements View.OnClickListener {
public b() {
}
@Override
public final void onClick(View view) {
if (view.getId() == 2131361994) {
il.b bVar = NotificationCleanMainActivity.this;
bVar.q.setItemAnimator(new e());
bVar.q.setEmptyView((View) null);
SharedPreferences sharedPreferences = bVar.getSharedPreferences("notification_clean", 0);
if (sharedPreferences == null ? false : sharedPreferences.getBoolean("show_open_success_in_list", false)) {
bVar.w.postDelayed(new n(this, 16), 200L);
}
((ra.a) bVar.W2()).w0();
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(bVar.findViewById(2131363764), (Property<View, Float>) View.TRANSLATION_Y, 0.0f, r6.getHeight());
ofFloat.setDuration(500L);
ofFloat.start();
}
}
}
@Override
public final void S1() {
((ra.a) W2()).H0();
}
@Override
public final String X2() {
return "I_TR_NotificationClean";
}
@Override
public final void Y2() {
Z2(5, this.C, this.A, this.u, HttpStatus.HTTP_INTERNAL_SERVER_ERROR);
}
@Override
public final void Z() {
this.q.smoothScrollToPosition(0);
this.q.setIsInteractive(false);
this.f209y = this.r.getItemCount();
this.f208x = this.r.getItemCount();
this.f210z = 1;
this.w.postDelayed(new androidx.activity.a(this, 18), 300L);
}
public final void c3(Intent intent) {
if (intent == null || !intent.getBooleanExtra("remind_open_success", false)) {
return;
}
SharedPreferences sharedPreferences = getSharedPreferences("notification_clean", 0);
SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
if (edit == null) {
return;
}
edit.putBoolean("show_open_success_in_list", true);
edit.apply();
}
public final void d3() {
qa.a aVar = this.r;
aVar.l = 0;
aVar.d(null);
this.r.notifyDataSetChanged();
this.w.postDelayed(new androidx.core.widget.a(this, 26), 500L);
}
public final void onActivityResult(int i, int i10, Intent intent) {
if (i != 101) {
super/*androidx.fragment.app.FragmentActivity*/.onActivityResult(i10, i10, intent);
} else if (i10 == -1) {
finish();
}
}
@Override
public final void onBackPressed() {
if (this.B) {
return;
}
super.onBackPressed();
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558499);
ArrayList arrayList = new ArrayList();
arrayList.add(new TitleBar.i(new TitleBar.b(2131231531), new TitleBar.e(2131887457), new g(this, 18)));
TitleBar.a configure = findViewById(2131363196).getConfigure();
configure.e(2131887920);
configure.g(new t4.b(this, 24));
configure.a.h = arrayList;
configure.a();
ThinkRecyclerView findViewById = findViewById(2131363012);
this.q = findViewById;
findViewById.setHasFixedSize(true);
this.q.setLayoutManager(new LinearLayoutManager(this));
qa.a aVar = new qa.a(this);
this.r = aVar;
aVar.k = this.D;
this.q.setAdapter(aVar);
this.q.b(findViewById(2131362965), this.r);
this.s = (RelativeLayout) findViewById(2131362985);
this.t = (TextView) findViewById(2131363680);
this.u = (ImageView) findViewById(2131362479);
new ItemTouchHelper(new qa.c(this.r)).attachToRecyclerView(this.q);
Button button = (Button) findViewById(2131361994);
this.v = button;
button.setOnClickListener(this.E);
this.w = new Handler(Looper.getMainLooper());
if (!l.d(this) || !ja.d.d(this).e()) {
startActivityForResult(new Intent((Context) this, (Class<?>) NotificationCleanGuideActivity.class), 101);
}
c3(getIntent());
}
@Override
public final void onDestroy() {
qa.a aVar = this.r;
if (aVar != null) {
aVar.d(null);
}
super.onDestroy();
}
public final void onNewIntent(Intent intent) {
super/*androidx.fragment.app.FragmentActivity*/.onNewIntent(intent);
c3(intent);
}
@Override
public final void x(la.a aVar) {
if (!ja.d.d(this).e()) {
this.r.d(null);
this.r.e(false);
this.r.notifyDataSetChanged();
return;
}
F.c("=> showJunkNotifications with list size: " + aVar.getCount());
SharedPreferences sharedPreferences = getSharedPreferences("notification_clean", 0);
if (sharedPreferences == null ? false : sharedPreferences.getBoolean("show_open_success_in_list", false)) {
this.r.e(true);
}
this.r.d(aVar);
this.r.notifyDataSetChanged();
if (this.r.isEmpty()) {
this.v.setVisibility(8);
} else {
this.v.setVisibility(0);
}
}
@Override
public final Context getContext() {
return this;
}
}