正在查看: Fancy Optimizer v4.6.3 应用的 NotificationCleanGuideActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 NotificationCleanGuideActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.notificationclean.ui.activity;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.ActivityNotFoundException;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.service.notification.NotificationListenerService;
import android.util.Property;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.LinearInterpolator;
import android.widget.ImageView;
import android.widget.TextView;
import ap.b;
import c7.l;
import com.fancyclean.boost.notificationclean.ui.view.ShiningStarView;
import com.thinkyeah.common.ui.view.FlashButton;
import ja.d;
import ml.g;
import na.c;
import v7.a;
import vj.h;
public class NotificationCleanGuideActivity extends a implements View.OnClickListener {
public static final h f205z = h.f(NotificationCleanGuideActivity.class);
public TextView l;
public TextView m;
public TextView n;
public TextView o;
public ViewGroup p;
public ImageView q;
public ImageView r;
public ImageView s;
public ImageView t;
public ImageView u;
public ImageView v;
public FlashButton w;
public ShiningStarView f206x;
public Handler f207y;
public static void X2(NotificationCleanGuideActivity notificationCleanGuideActivity, int i) {
notificationCleanGuideActivity.n.setText(notificationCleanGuideActivity.getString(2131886572));
notificationCleanGuideActivity.o.setText(String.valueOf(i));
}
public final void onActivityResult(int i, int i10, Intent intent) {
if (i != 101) {
super/*androidx.fragment.app.FragmentActivity*/.onActivityResult(i, i10, intent);
return;
}
boolean d = l.d(this);
if (d) {
d.d(this).c();
startActivity(new Intent((Context) this, (Class<?>) NotificationCleanMainActivity.class));
finish();
}
l.g("Notification4NC", d);
}
public final void onBackPressed() {
setResult(-1);
finish();
}
@Override
public void onClick(View view) {
boolean z10;
if (view.getId() != 2131362018) {
if (view.getId() == 2131361997) {
setResult(-1);
finish();
return;
}
return;
}
if (l.d(this)) {
d.d(this).c();
h hVar = NotificationCleanMainActivity.F;
Intent intent = new Intent((Context) this, (Class<?>) NotificationCleanMainActivity.class);
if (this instanceof NotificationListenerService) {
intent.addFlags(268435456);
}
intent.putExtra("remind_open_success", true);
startActivity(intent);
finish();
return;
}
SharedPreferences sharedPreferences = d.d(this).b.getSharedPreferences("notification_clean", 0);
SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
if (edit != null) {
edit.putBoolean("notification_clean_enabled", false);
edit.apply();
}
b.b().f(new c());
h hVar2 = ka.b.a;
try {
startActivityForResult(new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"), 101);
com.adtiny.core.d.b().getClass();
com.adtiny.core.d.f();
} catch (ActivityNotFoundException e) {
try {
Intent intent2 = new Intent();
intent2.setComponent(new ComponentName("com.android.settings", "com.android.settings.Settings$NotificationAccessSettingsActivity"));
intent2.putExtra(":settings:show_fragment", "NotificationAccessSettings");
startActivityForResult(intent2, 101);
com.adtiny.core.d.b().getClass();
com.adtiny.core.d.f();
} catch (Exception unused) {
ka.b.a.d("Device not support Notification Access Settings, e: ", e);
z10 = false;
}
}
z10 = true;
if (!z10) {
f205z.c("Failed to find Notification Access Permissions");
finish();
return;
}
SharedPreferences sharedPreferences2 = getSharedPreferences("notification_clean", 0);
SharedPreferences.Editor edit2 = sharedPreferences2 != null ? sharedPreferences2.edit() : null;
if (edit2 != null) {
edit2.putBoolean("should_jump_notification_list", true);
edit2.apply();
}
new Handler().postDelayed(new androidx.appcompat.widget.b(this, 17), 200L);
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558498);
this.f207y = new Handler();
ImageView imageView = (ImageView) findViewById(2131362404);
ViewGroup.LayoutParams layoutParams = imageView.getLayoutParams();
layoutParams.height = (int) (ml.b.j(this).x * 1.3d);
imageView.setLayoutParams(layoutParams);
FlashButton findViewById = findViewById(2131362018);
this.w = findViewById;
findViewById.setFlashEnabled(false);
this.w.setOnClickListener(this);
findViewById(2131361997).setOnClickListener(this);
this.f206x = (ShiningStarView) findViewById(2131363094);
this.l = (TextView) findViewById(2131363557);
this.m = (TextView) findViewById(2131363591);
this.n = (TextView) findViewById(2131363593);
this.o = (TextView) findViewById(2131363592);
this.p = (ViewGroup) findViewById(2131362987);
this.q = (ImageView) findViewById(2131362464);
this.r = (ImageView) findViewById(2131362465);
this.s = (ImageView) findViewById(2131362466);
this.t = (ImageView) findViewById(2131362448);
this.u = (ImageView) findViewById(2131362449);
this.v = (ImageView) findViewById(2131362450);
this.t.setScaleX(0.0f);
this.t.setScaleY(0.0f);
this.u.setScaleX(0.0f);
this.u.setScaleY(0.0f);
this.v.setScaleX(0.0f);
this.v.setScaleY(0.0f);
h hVar = f205z;
hVar.c("==> startGuideAnimation");
int i = -g.b(this, 67);
int b = g.b(this, 112);
int i10 = -g.b(this, 7);
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.l, (Property<TextView, Float>) View.TRANSLATION_Y, 100.0f, 0.0f);
ofFloat.setDuration(1000L);
ofFloat.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.l, (Property<TextView, Float>) View.ALPHA, 0.0f, 1.0f);
ofFloat2.setDuration(1000L);
ofFloat2.setInterpolator(new DecelerateInterpolator());
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playTogether(ofFloat, ofFloat2);
ObjectAnimator ofFloat3 = ObjectAnimator.ofFloat(this.p, (Property<ViewGroup, Float>) View.SCALE_X, 1.0f, 1.32f);
this.p.setPivotX(g.b(this, r5));
this.p.setPivotY(g.b(this, 60));
ofFloat3.setDuration(500L);
ofFloat3.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat4 = ObjectAnimator.ofFloat(this.p, (Property<ViewGroup, Float>) View.SCALE_Y, 1.0f, 1.32f);
ofFloat4.setDuration(500L);
ofFloat4.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat5 = ObjectAnimator.ofFloat(this.m, (Property<TextView, Float>) View.ALPHA, 1.0f, 0.0f);
ofFloat2.setDuration(1000L);
ofFloat2.setInterpolator(new DecelerateInterpolator());
AnimatorSet animatorSet2 = new AnimatorSet();
animatorSet2.playTogether(ofFloat3, ofFloat4, ofFloat5);
ObjectAnimator ofFloat6 = ObjectAnimator.ofFloat(this.q, (Property<ImageView, Float>) View.SCALE_X, 1.0f, 0.0f);
float f = b;
this.q.setPivotX(f);
float f10 = i10;
this.q.setPivotY(f10);
ofFloat6.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat7 = ObjectAnimator.ofFloat(this.q, (Property<ImageView, Float>) View.SCALE_Y, 1.0f, 0.0f);
ofFloat7.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat8 = ObjectAnimator.ofFloat(this.q, (Property<ImageView, Float>) View.ALPHA, 1.0f, 0.0f);
ofFloat8.setInterpolator(new DecelerateInterpolator());
AnimatorSet animatorSet3 = new AnimatorSet();
animatorSet3.playTogether(ofFloat6, ofFloat7, ofFloat8);
animatorSet3.setDuration(800L);
float f11 = i;
ObjectAnimator ofFloat9 = ObjectAnimator.ofFloat(this.r, (Property<ImageView, Float>) View.TRANSLATION_Y, 0.0f, f11);
ofFloat9.setDuration(800L);
ofFloat9.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat10 = ObjectAnimator.ofFloat(this.s, (Property<ImageView, Float>) View.TRANSLATION_Y, 0.0f, f11);
ofFloat10.setDuration(800L);
ofFloat10.setInterpolator(new DecelerateInterpolator());
AnimatorSet animatorSet4 = new AnimatorSet();
animatorSet4.playTogether(animatorSet3, ofFloat9, ofFloat10);
ObjectAnimator ofFloat11 = ObjectAnimator.ofFloat(this.t, (Property<ImageView, Float>) View.SCALE_X, 0.0f, 1.0f);
ofFloat11.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat12 = ObjectAnimator.ofFloat(this.t, (Property<ImageView, Float>) View.SCALE_Y, 0.0f, 1.0f);
ofFloat12.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat13 = ObjectAnimator.ofFloat(this.t, (Property<ImageView, Float>) View.ALPHA, 0.0f, 1.0f);
ofFloat13.setInterpolator(new DecelerateInterpolator());
AnimatorSet animatorSet5 = new AnimatorSet();
animatorSet5.playTogether(ofFloat11, ofFloat12, ofFloat13);
animatorSet5.setDuration(100L);
ObjectAnimator ofFloat14 = ObjectAnimator.ofFloat(this.r, (Property<ImageView, Float>) View.SCALE_X, 1.0f, 0.0f);
this.r.setPivotX(f);
this.r.setPivotY(f10);
ofFloat14.setDuration(800L);
ofFloat14.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat15 = ObjectAnimator.ofFloat(this.r, (Property<ImageView, Float>) View.SCALE_Y, 1.0f, 0.0f);
ofFloat15.setDuration(800L);
ofFloat15.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat16 = ObjectAnimator.ofFloat(this.r, (Property<ImageView, Float>) View.ALPHA, 1.0f, 0.0f);
ofFloat16.setDuration(800L);
ofFloat16.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat17 = ObjectAnimator.ofFloat(this.s, (Property<ImageView, Float>) View.TRANSLATION_Y, f11, i * 2);
ofFloat17.setDuration(800L);
ofFloat17.setInterpolator(new DecelerateInterpolator());
AnimatorSet animatorSet6 = new AnimatorSet();
animatorSet6.playTogether(ofFloat14, ofFloat15, ofFloat16);
AnimatorSet animatorSet7 = new AnimatorSet();
animatorSet7.playTogether(animatorSet6, ofFloat17);
ObjectAnimator ofFloat18 = ObjectAnimator.ofFloat(this.u, (Property<ImageView, Float>) View.SCALE_X, 0.0f, 1.0f);
ofFloat18.setDuration(100L);
ofFloat18.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat19 = ObjectAnimator.ofFloat(this.u, (Property<ImageView, Float>) View.SCALE_Y, 0.0f, 1.0f);
ofFloat19.setDuration(100L);
ofFloat19.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat20 = ObjectAnimator.ofFloat(this.u, (Property<ImageView, Float>) View.ALPHA, 0.0f, 1.0f);
ofFloat20.setDuration(100L);
ofFloat20.setInterpolator(new DecelerateInterpolator());
AnimatorSet animatorSet8 = new AnimatorSet();
animatorSet8.playTogether(ofFloat18, ofFloat19, ofFloat20);
ObjectAnimator ofFloat21 = ObjectAnimator.ofFloat(this.s, (Property<ImageView, Float>) View.SCALE_X, 1.0f, 0.0f);
this.s.setPivotX(f);
this.s.setPivotY(f10);
ofFloat21.setDuration(800L);
ofFloat21.setInterpolator(new LinearInterpolator());
ObjectAnimator ofFloat22 = ObjectAnimator.ofFloat(this.s, (Property<ImageView, Float>) View.SCALE_Y, 1.0f, 0.0f);
ofFloat22.setDuration(800L);
ofFloat22.setInterpolator(new LinearInterpolator());
ObjectAnimator ofFloat23 = ObjectAnimator.ofFloat(this.s, (Property<ImageView, Float>) View.ALPHA, 1.0f, 0.0f);
ofFloat23.setDuration(800L);
ofFloat23.setInterpolator(new DecelerateInterpolator());
AnimatorSet animatorSet9 = new AnimatorSet();
animatorSet9.playTogether(ofFloat21, ofFloat22, ofFloat23);
ObjectAnimator ofFloat24 = ObjectAnimator.ofFloat(this.v, (Property<ImageView, Float>) View.SCALE_X, 0.0f, 1.0f);
ofFloat24.setDuration(100L);
ofFloat24.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat25 = ObjectAnimator.ofFloat(this.v, (Property<ImageView, Float>) View.SCALE_Y, 0.0f, 1.0f);
ofFloat25.setDuration(100L);
ofFloat25.setInterpolator(new DecelerateInterpolator());
ObjectAnimator ofFloat26 = ObjectAnimator.ofFloat(this.v, (Property<ImageView, Float>) View.ALPHA, 0.0f, 1.0f);
ofFloat26.setDuration(100L);
ofFloat26.setInterpolator(new DecelerateInterpolator());
AnimatorSet animatorSet10 = new AnimatorSet();
animatorSet10.playTogether(ofFloat24, ofFloat25, ofFloat26);
ObjectAnimator ofFloat27 = ObjectAnimator.ofFloat(this.p, (Property<ViewGroup, Float>) View.SCALE_X, 1.32f, 1.0f);
ofFloat27.setInterpolator(new AccelerateDecelerateInterpolator());
ObjectAnimator ofFloat28 = ObjectAnimator.ofFloat(this.p, (Property<ViewGroup, Float>) View.SCALE_Y, 1.32f, 1.0f);
ofFloat28.setInterpolator(new AccelerateDecelerateInterpolator());
AnimatorSet animatorSet11 = new AnimatorSet();
animatorSet11.playTogether(ofFloat27, ofFloat28);
animatorSet11.setStartDelay(500L);
animatorSet11.setDuration(800L);
animatorSet4.addListener(new pa.a(this));
animatorSet7.addListener(new pa.b(this));
animatorSet9.addListener(new pa.c(this));
AnimatorSet animatorSet12 = new AnimatorSet();
animatorSet12.playSequentially(animatorSet, animatorSet2, animatorSet4, animatorSet5, animatorSet7, animatorSet8, animatorSet9, animatorSet10, animatorSet11);
long c = Build.VERSION.SDK_INT >= 24 ? androidx.core.util.a.c(animatorSet12) - 2000 : 3000L;
hVar.c("flashTiming: " + c);
this.f207y.postDelayed(new androidx.core.widget.a(this, 25), c);
animatorSet12.start();
animatorSet12.addListener(new pa.d(this));
}
public final void onDestroy() {
ShiningStarView shiningStarView = this.f206x;
ValueAnimator valueAnimator = shiningStarView.g;
if (valueAnimator != null) {
valueAnimator.cancel();
shiningStarView.g = null;
}
super/*il.b*/.onDestroy();
}
}