正在查看: Fancy Optimizer v4.6.3 应用的 GameAssistantAnimActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 GameAssistantAnimActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.gameassistant.ui.activity;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.Property;
import android.view.View;
import android.view.animation.LinearInterpolator;
import android.widget.ImageView;
import android.widget.TextView;
import com.adtiny.core.d;
import com.bumptech.glide.c;
import com.fancyclean.boost.gameassistant.model.GameApp;
import com.mbridge.msdk.playercommon.exoplayer2.source.chunk.ChunkedTrackBlacklistUtil;
import hl.b;
import q8.f;
import t4.k;
import v7.a;
import vj.h;
public class GameAssistantAnimActivity extends a<b> {
public static final h f174z = new h("GameAssistantAnimActivity");
public ImageView l;
public ImageView m;
public TextView n;
public AnimatorSet o;
public ObjectAnimator p;
public ValueAnimator q;
public GameApp r;
public f t;
public long v;
public View w;
public View f175x;
public TextView f176y;
public final Handler s = new Handler(Looper.getMainLooper());
public boolean u = false;
public final void X2() {
this.w.setVisibility(0);
this.f175x.setVisibility(8);
ObjectAnimator objectAnimator = this.p;
if (objectAnimator != null) {
objectAnimator.cancel();
}
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.l, (Property<ImageView, Float>) View.ROTATION, 0.0f, 360.0f);
this.p = ofFloat;
ofFloat.setInterpolator(new LinearInterpolator());
this.p.setDuration(1000L);
this.p.setRepeatCount(-1);
this.p.start();
this.o = new AnimatorSet();
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.m, (Property<ImageView, Float>) View.TRANSLATION_X, 0.0f, 8.0f, -8.0f, 4.0f, -3.0f, 4.0f);
ofFloat2.setRepeatCount(-1);
ObjectAnimator ofFloat3 = ObjectAnimator.ofFloat(this.m, (Property<ImageView, Float>) View.TRANSLATION_Y, 0.0f, 8.0f, 4.0f, -6.0f, 5.0f, -4.0f);
ofFloat3.setRepeatCount(-1);
this.o.playTogether(ofFloat2, ofFloat3);
this.o.setDuration(500L);
this.o.start();
ValueAnimator ofFloat4 = ValueAnimator.ofFloat(0.0f, 1.0f);
this.q = ofFloat4;
ofFloat4.addUpdateListener(new k(this, 1));
this.q.addListener(new s8.b(this));
this.q.setDuration(2000L);
this.q.start();
}
public final void finish() {
d.b().h(this, "I_GameBoost", (d.l) null);
super/*android.app.Activity*/.finish();
}
public final void onBackPressed() {
ObjectAnimator objectAnimator = this.p;
if (objectAnimator != null) {
objectAnimator.removeAllListeners();
this.p.cancel();
}
AnimatorSet animatorSet = this.o;
if (animatorSet != null) {
animatorSet.removeAllListeners();
this.o.cancel();
}
ValueAnimator valueAnimator = this.q;
if (valueAnimator != null) {
valueAnimator.removeAllUpdateListeners();
this.q.removeAllListeners();
this.q.cancel();
}
finish();
}
public final void onCreate(Bundle bundle) {
requestWindowFeature(1);
super.onCreate(bundle);
setContentView(2131558486);
GameApp gameApp = (GameApp) getIntent().getParcelableExtra("start_game_app");
this.r = gameApp;
if (gameApp == null) {
finish();
return;
}
findViewById(2131361997).setOnClickListener(new com.facebook.login.d(this, 14));
this.f176y = (TextView) findViewById(2131363612);
this.w = findViewById(2131363751);
this.f175x = findViewById(2131363786);
this.l = (ImageView) findViewById(2131362497);
this.m = (ImageView) findViewById(2131362395);
this.n = (TextView) findViewById(2131363632);
c.c(this).f(this).o(this.r).D(this.m);
X2();
}
public final void onDestroy() {
ObjectAnimator objectAnimator = this.p;
if (objectAnimator != null) {
objectAnimator.removeAllListeners();
this.p.cancel();
}
AnimatorSet animatorSet = this.o;
if (animatorSet != null) {
animatorSet.removeAllListeners();
this.o.cancel();
}
ValueAnimator valueAnimator = this.q;
if (valueAnimator != null) {
valueAnimator.removeAllUpdateListeners();
this.q.removeAllListeners();
this.q.cancel();
}
yj.a aVar = this.t;
if (aVar != null) {
aVar.cancel(true);
this.t.d = null;
this.t = null;
}
super/*il.b*/.onDestroy();
}
public final void onNewIntent(Intent intent) {
super/*androidx.fragment.app.FragmentActivity*/.onNewIntent(intent);
GameApp gameApp = (GameApp) getIntent().getParcelableExtra("start_game_app");
this.r = gameApp;
if (gameApp != null) {
this.u = false;
X2();
}
}
public final void onResume() {
super/*wk.a*/.onResume();
if (this.u) {
this.w.setVisibility(8);
this.f175x.setVisibility(0);
int currentTimeMillis = (int) ((System.currentTimeMillis() - this.v) / ChunkedTrackBlacklistUtil.DEFAULT_TRACK_BLACKLIST_MS);
if (currentTimeMillis < 1) {
currentTimeMillis = 1;
}
this.f176y.setText(String.valueOf(currentTimeMillis));
}
}
}