手机管家 v7.2.0版本的 MD5 值为:dd92ba71696e35a4b841cd1b5de53cd3
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.meri.ui.guide;
import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.net.Uri;
import android.text.SpannableString;
import android.text.style.ForegroundColorSpan;
import android.text.style.URLSpan;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewStub;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.MediaController;
import android.widget.RelativeLayout;
import android.widget.TextView;
import tcs.anr;
import tcs.ba;
import tcs.bim;
import tcs.bql;
import tcs.yz;
import uilib.components.QLoadingView;
public class e extends a implements MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener, View.OnClickListener, Animation.AnimationListener {
private QLoadingView dhU;
private View dqh;
private boolean gdY;
private View gee;
private View gei;
private Button gej;
private FullGuideVideoView gel;
private View gem;
private View gen;
private ViewStub gep;
private Animation ges;
private Animation get;
private Animation geu;
private View gev;
private View gew;
private View gex;
private View gey;
private View mRootView;
private final String TAG = "GuideFullNew";
private boolean gek = false;
private int geo = 0;
private boolean geq = false;
private boolean ger = false;
public e(Activity activity, boolean z) {
this.gdY = false;
this.mActivity = activity;
this.gdQ = 1;
this.gdY = z;
}
@Override
public void afu() {
super.afu();
this.mRootView = LayoutInflater.from(this.mActivity).inflate(bql.g.gxr, (ViewGroup) this.mActivity.findViewById(bql.f.guI));
}
@Override
public void WP() {
super.WP();
this.gen = this.mRootView.findViewById(bql.f.gwO);
this.gep = (ViewStub) this.mRootView.findViewById(bql.f.gwQ);
C(this.mRootView);
}
private void cE(boolean z) {
if (!this.geq) {
this.geq = true;
this.gep.inflate();
}
this.dhU = (QLoadingView) this.mRootView.findViewById(bql.f.gvi);
this.dqh = this.mRootView.findViewById(bql.f.gtf);
this.gei = this.mRootView.findViewById(bql.f.guH);
this.gej = (Button) this.mRootView.findViewById(bql.f.gwf);
this.gej.setOnClickListener(this);
if (!this.gdY) {
this.gei.setVisibility(0);
E(this.gei);
} else {
this.gei.setVisibility(4);
}
DisplayMetrics displayMetrics = new DisplayMetrics();
this.mActivity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
if (displayMetrics.heightPixels <= 800) {
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.gej.getLayoutParams();
layoutParams.setMargins(layoutParams.leftMargin, 60, layoutParams.rightMargin, layoutParams.bottomMargin);
layoutParams.addRule(14);
this.gej.setLayoutParams(layoutParams);
}
this.gem.setVisibility(8);
this.dqh.setVisibility(0);
if (z) {
D(this.dqh);
} else {
afw();
}
}
protected boolean C(View view) {
try {
this.gem = view.findViewById(bql.f.gwN);
if (this.gdY) {
this.gee = view.findViewById(bql.f.gun);
this.gee.setVisibility(0);
this.gee.setOnClickListener(this);
}
this.gel = (FullGuideVideoView) view.findViewById(bql.f.gwM);
Uri parse = Uri.parse("android.resource://" + this.mActivity.getApplicationContext().getPackageName() + "/" + bql.h.gxY);
this.gel.setVisibility(0);
this.gel.setClickable(false);
MediaController mediaController = new MediaController(this.mActivity);
mediaController.setVisibility(8);
this.gel.setMediaController(mediaController);
this.gel.setOnCompletionListener(this);
this.gel.setOnErrorListener(this);
this.gel.setOnPreparedListener(this);
this.gel.setVideoURI(parse);
return true;
} catch (Throwable th) {
cE(false);
return true;
}
}
@Override
public void onCompletion(MediaPlayer mediaPlayer) {
this.ger = true;
cE(true);
}
@Override
public boolean onError(MediaPlayer mediaPlayer, int i, int i2) {
this.ger = true;
cE(false);
yz.a(bim.QJ().kH(), ba.fgR, 0, 4);
return true;
}
@Override
public void onPrepared(MediaPlayer mediaPlayer) {
try {
this.gel.start();
com.tencent.server.base.d.ajT().postDelayed(new Runnable() {
@Override
public void run() {
e.this.mRootView.findViewById(bql.f.gup).setVisibility(8);
e.this.gen.setVisibility(0);
e.this.gen.startAnimation(AnimationUtils.loadAnimation(e.this.mActivity, bql.a.goI));
}
}, 80L);
com.tencent.server.base.d.ajT().postDelayed(new Runnable() {
@Override
public void run() {
e.this.gen.startAnimation(AnimationUtils.loadAnimation(e.this.mActivity, bql.a.goU));
}
}, anr.dZK);
} catch (Exception e) {
}
}
@Override
public void onPause() {
super.onPause();
if (this.gel != null) {
this.geo = this.gel.getCurrentPosition();
this.gel.pause();
}
}
@Override
public void onResume() {
super.onResume();
if (!this.ger && this.gel != null) {
this.gel.seekTo(this.geo);
this.gel.start();
}
}
@Override
public void onClick(View view) {
int id = view.getId();
if (id == bql.f.gwf || id == bql.f.gun) {
if (this.gek || this.gdY) {
if (this.gej != null) {
this.gej.setClickable(false);
}
if (this.gee != null) {
this.gee.setClickable(false);
}
if (this.dhU != null) {
this.dhU.setVisibility(0);
this.dhU.startRotationAnimation();
}
rj(0);
if (this.gdY) {
this.gdR = System.currentTimeMillis() - this.gdR;
com.tencent.server.base.d.ajT().postDelayed(new Runnable() {
@Override
public void run() {
yz.c(bim.QJ().kH(), ba.bpL, 4);
long j = e.this.gdR;
}
}, 500L);
}
}
}
}
private void D(View view) {
try {
this.gev = view.findViewById(bql.f.gwv);
this.ges = AnimationUtils.loadAnimation(this.mActivity, bql.a.goT);
this.ges.setAnimationListener(this);
this.gev.setVisibility(0);
this.gev.startAnimation(this.ges);
com.tencent.server.base.d.ajT().postDelayed(new Runnable() {
@Override
public void run() {
e.this.gex = e.this.mRootView.findViewById(bql.f.gwY);
e.this.gex.setVisibility(0);
e.this.gex.startAnimation(AnimationUtils.loadAnimation(e.this.mActivity, bql.a.goI));
}
}, 250L);
} catch (Exception e) {
afw();
}
}
private void afw() {
this.dqh.findViewById(bql.f.gwv).setVisibility(0);
this.dqh.findViewById(bql.f.gte).setVisibility(0);
this.dqh.findViewById(bql.f.gwY).setVisibility(0);
this.dqh.findViewById(bql.f.gtk).setVisibility(0);
}
@Override
public void onAnimationEnd(Animation animation) {
if (animation == this.ges) {
this.gev.clearAnimation();
this.gew = this.mRootView.findViewById(bql.f.gte);
this.geu = AnimationUtils.loadAnimation(this.mActivity, bql.a.goI);
this.geu.setAnimationListener(this);
this.gew.setVisibility(0);
this.gew.startAnimation(this.geu);
return;
}
if (animation == this.geu) {
this.gew.clearAnimation();
this.gex.clearAnimation();
this.gey = this.mRootView.findViewById(bql.f.gtk);
this.gey.setVisibility(0);
this.get = AnimationUtils.loadAnimation(this.mActivity, bql.a.goI);
this.get.setAnimationListener(this);
this.gey.startAnimation(this.get);
return;
}
if (animation == this.get) {
this.gey.clearAnimation();
}
}
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
protected void E(View view) {
TextView textView = (TextView) view.findViewById(bql.f.gwH);
SpannableString spannableString = new SpannableString(textView.getText());
spannableString.setSpan(new URLSpan("http://m.qq.com/agreement/index_zhcn.jsp?pageNo=1&type=1"), 1, textView.getText().length() - 1, 33);
int color = this.mActivity.getResources().getColor(bql.c.gpq);
spannableString.setSpan(new ForegroundColorSpan(color), 1, textView.getText().length() - 1, 33);
textView.setText(spannableString);
textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
try {
e.this.mActivity.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("http://m.qq.com/agreement/index_zhcn.jsp?pageNo=1&type=1")));
} catch (Exception e) {
}
}
});
TextView textView2 = (TextView) view.findViewById(bql.f.gwh);
SpannableString spannableString2 = new SpannableString(textView2.getText());
spannableString2.setSpan(new URLSpan("http://www.qq.com/privacy.htm"), 1, textView2.getText().length() - 1, 33);
spannableString2.setSpan(new ForegroundColorSpan(color), 1, textView2.getText().length() - 1, 33);
textView2.setText(spannableString2);
textView2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
try {
e.this.mActivity.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("http://www.qq.com/privacy.htm")));
} catch (Exception e) {
}
}
});
CheckBox checkBox = (CheckBox) view.findViewById(bql.f.gtn);
checkBox.setChecked(true);
this.gek = true;
checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
try {
e.this.gek = z;
e.this.gej.setEnabled(e.this.gek);
} catch (Exception e) {
}
}
});
}
}