安全中心 v4.9.2版本的 MD5 值为:d64c0ec7920c532fa6e6d9bb001cf9bf
以下内容为反编译后的 bzs.java 源代码,内容仅作参考
package tcs;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.drawable.ClipDrawable;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.text.SpannableString;
import android.text.style.ForegroundColorSpan;
import android.view.View;
import android.view.WindowManager;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.Animation;
import android.view.animation.DecelerateInterpolator;
import com.anguanjia.security.R;
import com.tencent.kingkong.database.SQLiteDatabase;
import com.tencent.qqpimsecure.plugin.main.PiMain;
import com.tencent.qqpimsecure.plugin.main.permissions.component.PanelView;
import java.util.ArrayList;
import java.util.Iterator;
import meri.pluginsdk.PluginIntent;
import meri.util.AccessHelper;
import tcs.ve;
import tcs.vv;
import uilib.components.QButton;
import uilib.components.QImageView;
import uilib.components.QTextView;
public class bzs extends uilib.frame.a implements View.OnClickListener {
private WindowManager anA;
private bzu hlE;
private uilib.templates.a hlF;
private b hlG;
private d hlH;
private a hlI;
private View hlJ;
private View hlK;
private View hlL;
private bzq hlM;
private bzq hlN;
private bzq hlO;
private ArrayList<bzq> hlP;
private int hlQ;
private int hlR;
private int hlS;
private int hlT;
private int hlU;
private int hlV;
private int hlW;
private ArrayList<Integer> hlX;
private ArrayList<yu> hlY;
private byp hls;
private Handler mHandler;
public bzs(Context context, int i) {
super(context);
this.mHandler = new amy(Looper.getMainLooper());
this.hls = byp.aFM();
this.hlX = new ArrayList<>();
this.hlY = new ArrayList<>();
this.hlM = new bzq(R.drawable.virus_icon, R.string.permissions_guide_realtime_protect_title_default, R.string.permissions_guide_realtime_protect_detail, 1);
this.hlN = new bzq(R.drawable.rocket_icon, R.string.permissions_guide_rocket_show_title_default, R.string.permissions_guide_rocket_show_detail, 1);
this.hlO = new bzq(R.drawable.notification_icon, R.string.permissions_guide_post_notification_title_default, R.string.permissions_guide_post_notification_detail, 1);
this.hlP = new ArrayList<>();
this.anA = (WindowManager) PiMain.aEd().kI().getSystemService("window");
this.hlT = i;
}
@Override
public uilib.frame.b Zl() {
this.hlE = new bzu(this.mContext, this.hls.gh(R.string.permissions_guide_page_title), SQLiteDatabase.KeyEmpty, this);
this.hlJ = this.hls.inflate(this.mContext, R.layout.layout_permissions_guide_header, null);
this.hlG = new b(this.hlJ);
this.hlE.v(this.hlJ);
this.hlE.pd(R.drawable.title_info_normal);
com.tencent.qqpimsecure.dao.h.mu().Fw();
return this.hlE;
}
@Override
public void onResume() {
super.onResume();
meri.service.usespermission.b.Fc();
switch (this.hlS) {
case 1:
this.hlS = 0;
if (AccessHelper.Cz() == 0) {
aLp();
return;
} else {
if (com.tencent.qqpimsecure.dao.h.mu().FI()) {
gQ(true);
return;
}
return;
}
case 2:
if (this.hlU >= this.hlX.size() - 1) {
this.hlS = 3;
return;
}
return;
case 3:
case 6:
return;
case 4:
this.hlS = 0;
gQ(true);
return;
case 5:
this.hlS = 6;
this.hlM.gO(true);
com.tencent.qqpimsecure.dao.h.mu().F(0L);
final uilib.components.c cVar = new uilib.components.c(this.mContext);
cVar.setTitle(R.string.permissions_guide_realtime_protect_confirm_title);
cVar.setMessage(R.string.permissions_guide_realtime_protect_confirm_detail);
cVar.setPositiveButton(R.string.permissions_guide_granted, new View.OnClickListener() {
@Override
public void onClick(View view) {
cVar.dismiss();
com.tencent.qqpimsecure.dao.h.mu().F(System.currentTimeMillis());
bzs.this.gQ(false);
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOW, 4);
}
});
cVar.setNegativeButton(R.string.permissions_guide_realtime_protect_confirm_feedback, new View.OnClickListener() {
@Override
public void onClick(View view) {
cVar.dismiss();
za.b(bzs.this.mContext, "http://feedback.qq.com/?productId=1#!/detail/qid/6", null);
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOX, 4);
}
});
cVar.qf(17);
cVar.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialogInterface) {
bzs.this.hlS = 0;
}
});
cVar.show();
return;
case 7:
this.hlS = 0;
this.hlN.gO(true);
gQ(false);
this.hlT = 3;
return;
case 8:
this.hlS = 0;
this.hlO.gO(true);
gQ(false);
if (ada.hW("OP_POST_NOTIFICATION")) {
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eON, 4);
yz.d(PiMain.aEd().kH(), com.tencent.qqpimsecure.service.d.bxC, 5);
}
this.hlT = 3;
return;
default:
aLr();
return;
}
}
@Override
public void onClick(View view) {
SpannableString spannableString = new SpannableString(this.hls.gh(R.string.permissions_guide_page_intro_detail));
spannableString.setSpan(new ForegroundColorSpan(this.hls.gQ(R.color.uilib_text_green)), 12, 26, 33);
spannableString.setSpan(new ForegroundColorSpan(this.hls.gQ(R.color.uilib_text_green)), 38, 42, 33);
final uilib.components.c cVar = new uilib.components.c(this.mContext);
cVar.setTitle(R.string.permissions_guide_page_intro_title);
cVar.setMessage(spannableString);
cVar.setCanceledOnTouchOutside(false);
cVar.setNegativeButton(R.string.i_know, new View.OnClickListener() {
@Override
public void onClick(View view2) {
cVar.dismiss();
}
});
cVar.show();
}
private void aLn() {
if (this.hlK == null) {
this.hlK = this.hls.inflate(this.mContext, R.layout.layout_permissions_guide_overview, null);
this.hlH = new d(this.hlK);
}
if (this.hlK.getParent() == null) {
this.hlE.J(this.hlL);
this.hlE.k(this.hlK);
}
this.hlH.a(this.hlP, this.hlQ, this.hlR);
}
private void aLo() {
if (this.hlL == null) {
this.hlL = this.hls.inflate(this.mContext, R.layout.layout_permissions_guide_detail, null);
this.hlI = new a(this.hlL);
}
if (this.hlL.getParent() == null) {
this.hlE.J(this.hlK);
this.hlE.k(this.hlL);
}
this.hlI.aR(this.hlP);
if (this.hlM.getState() == 0) {
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOU, 4);
}
}
private boolean gP(boolean z) {
boolean z2;
boolean z3;
yu kO;
byv aFS;
byv aFT;
yu Fo;
this.hlX.clear();
this.hlY.clear();
this.hlM.vK(R.string.permissions_guide_realtime_protect_title_default);
this.hlM.setState(1);
this.hlN.vK(R.string.permissions_guide_rocket_show_title_default);
this.hlN.setState(1);
this.hlO.vK(R.string.permissions_guide_post_notification_title_default);
this.hlO.setState(1);
if (meri.service.usespermission.d.FB()) {
z2 = false;
} else {
if (!z && (Fo = meri.service.usespermission.d.Fo()) != null) {
this.hlX.add(Integer.valueOf(vv.a.b.eFM));
this.hlY.add(Fo);
this.hlM.vK(R.string.permissions_guide_realtime_protect_title_without_permission);
this.hlM.setState(0);
} else if (ahk.xs().kM(vv.a.b.eFR) != null) {
this.hlM.vK(R.string.permissions_guide_realtime_protect_title_without_permission);
this.hlM.setState(0);
} else {
this.hlM.setState(-1);
}
z2 = true;
}
byr aFN = byr.aFN();
if (aFN.aFO() && (aFT = aFN.aFT()) != null) {
if (!z && (aFT.aGN & 4) != 0) {
yu yuVar = aFT.gWM;
if (yuVar != null) {
this.hlX.add(Integer.valueOf(vv.a.b.eFN));
this.hlY.add(yuVar);
this.hlN.vK(R.string.permissions_guide_rocket_show_title_without_permission);
this.hlN.setState(0);
}
} else if ((aFT.aGN & 1) != 0) {
this.hlN.vK(R.string.permissions_guide_rocket_show_title_without_permission);
this.hlN.setState(0);
} else {
this.hlN.setState(-1);
}
z2 = true;
}
if (aFN.aFQ() && (aFS = aFN.aFS()) != null) {
if (!z && (aFS.aGN & 4) != 0) {
yu yuVar2 = aFS.gWM;
if (yuVar2 != null) {
this.hlX.add(Integer.valueOf(vv.a.b.eKv));
this.hlY.add(yuVar2);
this.hlN.vK(R.string.permissions_guide_rocket_show_title_without_permission);
this.hlN.setState(0);
}
} else if ((aFS.aGN & 1) != 0) {
this.hlN.vK(R.string.permissions_guide_rocket_show_title_without_permission);
this.hlN.setState(0);
} else {
this.hlN.setState(-1);
}
z2 = true;
}
if (ada.hW("OP_POST_NOTIFICATION")) {
z3 = z2;
} else {
if (!z && (kO = AccessHelper.kO(vv.a.b.eFK)) != null) {
this.hlX.add(Integer.valueOf(vv.a.b.eFK));
this.hlY.add(kO);
this.hlO.vK(R.string.permissions_guide_post_notification_title_without_permission);
this.hlO.setState(0);
} else if (ahk.xs().kM(vv.a.b.eFP) != null) {
this.hlO.vK(R.string.permissions_guide_post_notification_title_without_permission);
this.hlO.setState(0);
} else {
this.hlO.setState(-1);
}
z3 = true;
}
this.hlP.clear();
this.hlP.add(this.hlM);
this.hlP.add(this.hlN);
this.hlP.add(this.hlO);
if (!z && !bzp.aLb().aLf() && !this.hlX.isEmpty()) {
this.hlM.vK(R.string.permissions_guide_realtime_protect_title_without_permission);
this.hlM.setState(0);
this.hlN.vK(R.string.permissions_guide_rocket_show_title_without_permission);
this.hlN.setState(0);
this.hlO.vK(R.string.permissions_guide_post_notification_title_without_permission);
this.hlO.setState(0);
this.hlQ = 0;
this.hlR = -1;
} else {
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
ArrayList arrayList3 = new ArrayList();
Iterator<bzq> it = this.hlP.iterator();
while (it.hasNext()) {
bzq next = it.next();
switch (next.getState()) {
case -1:
arrayList.add(next);
break;
case 0:
arrayList2.add(next);
break;
case 1:
arrayList3.add(next);
break;
}
}
this.hlP.clear();
this.hlP.addAll(arrayList2);
this.hlP.addAll(arrayList3);
this.hlP.addAll(arrayList);
this.hlQ = arrayList.size();
if (arrayList2.size() > 2) {
this.hlR = -1;
} else if (arrayList2.size() == 2) {
this.hlR = 0;
} else if (arrayList2.size() == 1) {
this.hlR = 1;
} else {
this.hlR = 2;
}
}
return z3;
}
public void aLp() {
gP(false);
if (!this.hlX.isEmpty()) {
this.hlS = 2;
this.hlU = 0;
this.hlV = 0;
this.hlW = 0;
aLs();
a(this.hlX.get(this.hlU).intValue(), this.hlY.get(this.hlU));
bzp aLb = bzp.aLb();
if (!aLb.aLf()) {
aLb.aLg();
}
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOT, 4);
return;
}
this.hlS = 0;
gQ(true);
}
private void a(final int i, yu yuVar) {
if (yuVar == null) {
this.hlS = 0;
} else {
AccessHelper.a(i, yuVar, new AccessHelper.c() {
@Override
public void onStart() {
}
@Override
public void I(int i2, int i3) {
if (i3 == 2) {
bzs.this.mHandler.post(new Runnable() {
@Override
public void run() {
bzs.this.hlV = 1;
bzs.this.hlW = 1;
}
});
}
}
@Override
public void onFinish() {
bzs.this.mHandler.post(new Runnable() {
@Override
public void run() {
bzs.this.vL(i);
}
});
}
});
}
}
public void aLq() {
this.hlS = 1;
AccessHelper.aS(true);
AccessHelper.a(this.mContext, true, null, 10000L, -1, -1);
com.tencent.qqpimsecure.dao.h.mu().bo(false);
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOS, 4);
}
public void vL(int i) {
if (i == 30004 && this.hlV == 0) {
com.tencent.qqpimsecure.dao.h.mu().Fh();
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eNR, 4);
yz.d(PiMain.aEd().kH(), meri.service.usespermission.c.eOm, 0);
} else if (i == 30007 && this.hlV == 0) {
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOM, 4);
if (byr.aFN().aFQ()) {
atb.cc(this.mContext).k(i, -1, null);
} else {
atb.cc(this.mContext).k(i, 0, null);
}
} else if (i == 30002 && this.hlV == 0) {
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eON, 4);
yz.d(PiMain.aEd().kH(), com.tencent.qqpimsecure.service.d.bxC, 3);
if (ada.hW("OP_POST_NOTIFICATION")) {
atb.cc(this.mContext).k(i, 0, null);
} else {
atb.cc(this.mContext).k(i, -1, null);
}
} else if (i == 30005 && this.hlV == 0) {
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOO, 4);
if (AccessHelper.oM() == 1) {
atb.cc(this.mContext).k(i, 0, null);
} else if (AccessHelper.oM() == 0) {
atb.cc(this.mContext).k(i, -1, null);
}
}
int i2 = this.hlU + 1;
this.hlU = i2;
if (i2 < this.hlX.size()) {
this.hlV = 0;
a(this.hlX.get(this.hlU).intValue(), this.hlY.get(this.hlU));
return;
}
aLt();
if (this.hlS == 3) {
this.hlS = 0;
gQ(true);
return;
}
this.hlS = 4;
PluginIntent pluginIntent = new PluginIntent(ve.g.eGS);
pluginIntent.putExtra(ve.m.eGR, 3);
pluginIntent.gg(2);
PiMain.aEd().a(pluginIntent, false);
this.hlT = 3;
}
private void aLr() {
gP(false);
if (AccessHelper.nT() && !this.hlX.isEmpty()) {
aLn();
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOQ, 4);
} else if (this.hlR == 2) {
aLn();
} else {
aLo();
bzp aLb = bzp.aLb();
if (!aLb.aLf()) {
aLb.aLg();
}
}
this.hlG.setLevel(this.hlR, false);
if (meri.service.usespermission.d.Fo() == null || !ahk.xs().FK()) {
com.tencent.qqpimsecure.dao.h.mu().xN();
}
}
public void gQ(boolean z) {
boolean gP = gP(true);
if (this.hlR == 2) {
if (gP) {
gP(false);
z = false;
}
aLn();
} else {
aLo();
bzp aLb = bzp.aLb();
if (!aLb.aLf()) {
aLb.aLg();
}
}
this.hlG.setLevel(this.hlR, z);
}
private void aLs() {
this.hlF = new uilib.templates.a(this.mContext);
this.hlF.k(this.hls.inflate(this.mContext, R.layout.layout_helper_operation_state_page, null));
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(-1, -1, akv.cRk, 67108904, -3);
layoutParams.screenOrientation = 1;
this.anA.addView(this.hlF.Zu(), layoutParams);
}
private void aLt() {
View Zu;
if (this.hlF != null && (Zu = this.hlF.Zu()) != null && Zu.getParent() != null) {
try {
this.anA.removeView(Zu);
} catch (Throwable th) {
}
}
}
public class b {
private PanelView hmc;
private QTextView hmd;
private QTextView hme;
private QTextView hmf;
public b(View view) {
this.hmc = (PanelView) view.findViewById(R.id.guide_state_panel);
this.hmd = (QTextView) view.findViewById(R.id.guide_state_level);
this.hme = (QTextView) view.findViewById(R.id.guide_operation_title);
this.hmf = (QTextView) view.findViewById(R.id.guide_operation_detail);
}
public void setLevel(int i, boolean z) {
bzs.this.hlE.setState(i);
switch (i) {
case -1:
this.hmc.setProgress(0.0f);
this.hmd.setText(R.string.permissions_guide_state_level_low);
break;
case 0:
this.hmc.setProgress(33.66f);
this.hmd.setText(R.string.permissions_guide_state_level_low);
break;
case 1:
this.hmc.setProgress(66.66f);
this.hmd.setText(R.string.permissions_guide_state_level_medium);
break;
case 2:
this.hmc.setProgress(100.0f);
this.hmd.setText(R.string.permissions_guide_state_level_high);
break;
}
if (i == 2) {
this.hme.setText(R.string.permissions_guide_operation_title_all_done);
this.hmf.setText(SQLiteDatabase.KeyEmpty);
} else if (z) {
this.hme.setText(R.string.permissions_guide_operation_title_continue);
this.hmf.setText(R.string.permissions_guide_operation_detail_continue);
uilib.components.g.F(bzs.this.mContext, bzs.this.hls.gh(R.string.permissions_guide_grant_continue));
} else {
this.hme.setText(R.string.permissions_guide_operation_title_default);
this.hmf.setText(R.string.permissions_guide_operation_detail_default);
}
}
}
public class d implements View.OnClickListener {
ArrayList<c> hmb = new ArrayList<>();
private View hmo;
private View hmp;
private QButton hmq;
private int hmr;
public d(View view) {
this.hmb.add(new c(view.findViewById(R.id.permission_item_1st), (QImageView) view.findViewById(R.id.item_1st_icon), (QTextView) view.findViewById(R.id.item_1st_title), null, null, view.findViewById(R.id.item_1st_without_permission), (QImageView) view.findViewById(R.id.item_1st_with_permission), true));
this.hmb.add(new c(view.findViewById(R.id.permission_item_2nd), (QImageView) view.findViewById(R.id.item_2nd_icon), (QTextView) view.findViewById(R.id.item_2nd_title), null, null, view.findViewById(R.id.item_2nd_without_permission), (QImageView) view.findViewById(R.id.item_2nd_with_permission), true));
this.hmb.add(new c(view.findViewById(R.id.permission_item_3rd), (QImageView) view.findViewById(R.id.item_3rd_icon), (QTextView) view.findViewById(R.id.item_3rd_title), null, null, view.findViewById(R.id.item_3rd_without_permission), (QImageView) view.findViewById(R.id.item_3rd_with_permission), true));
this.hmo = view.findViewById(R.id.gap_below_item_1st);
this.hmp = view.findViewById(R.id.gap_below_item_2nd);
this.hmq = (QButton) view.findViewById(R.id.btn_next);
this.hmq.setOnClickListener(this);
}
public void a(ArrayList<bzq> arrayList, int i, int i2) {
Iterator<c> it = this.hmb.iterator();
Iterator<bzq> it2 = arrayList.iterator();
while (it2.hasNext()) {
bzq next = it2.next();
if (it.hasNext()) {
next.gO(false);
it.next().a(next);
}
}
if (i > 1) {
this.hmo.setVisibility(8);
this.hmp.setVisibility(8);
} else if (i == 1) {
this.hmo.setVisibility(0);
this.hmp.setVisibility(8);
} else {
this.hmo.setVisibility(0);
this.hmp.setVisibility(0);
}
if (i2 == 2) {
this.hmq.setButtonByType(17);
this.hmq.setText(bzs.this.hls.gh(R.string.permissions_guide_grant_success));
this.hmr = 1;
} else {
this.hmq.setButtonByType(19);
this.hmq.setText(bzs.this.hls.gh(R.string.permissions_guide_grant_now));
this.hmr = 0;
}
}
@Override
public void onClick(View view) {
switch (this.hmr) {
case 0:
switch (AccessHelper.Cz()) {
case -52:
bzs.this.aLq();
break;
case 0:
bzs.this.aLp();
break;
default:
bzs.this.gQ(true);
break;
}
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOR, 4);
return;
case 1:
bzs.this.getActivity().finish();
return;
default:
return;
}
}
}
public class a {
private ArrayList<c> hmb = new ArrayList<>();
public a(View view) {
this.hmb.add(new c(view.findViewById(R.id.permission_item_1st), (QImageView) view.findViewById(R.id.item_1st_icon), (QTextView) view.findViewById(R.id.item_1st_title), (QTextView) view.findViewById(R.id.item_1st_detail), view.findViewById(R.id.item_1st_guide_flag), view.findViewById(R.id.item_1st_without_permission), (QImageView) view.findViewById(R.id.item_1st_with_permission), false));
this.hmb.add(new c(view.findViewById(R.id.permission_item_2nd), (QImageView) view.findViewById(R.id.item_2nd_icon), (QTextView) view.findViewById(R.id.item_2nd_title), (QTextView) view.findViewById(R.id.item_2nd_detail), view.findViewById(R.id.item_2nd_guide_flag), view.findViewById(R.id.item_2nd_without_permission), (QImageView) view.findViewById(R.id.item_2nd_with_permission), false));
this.hmb.add(new c(view.findViewById(R.id.permission_item_3rd), (QImageView) view.findViewById(R.id.item_3rd_icon), (QTextView) view.findViewById(R.id.item_3rd_title), (QTextView) view.findViewById(R.id.item_3rd_detail), view.findViewById(R.id.item_3rd_guide_flag), view.findViewById(R.id.item_3rd_without_permission), (QImageView) view.findViewById(R.id.item_3rd_with_permission), false));
}
public void aR(ArrayList<bzq> arrayList) {
Iterator<c> it = this.hmb.iterator();
Iterator<bzq> it2 = arrayList.iterator();
while (it2.hasNext()) {
bzq next = it2.next();
if (it.hasNext()) {
it.next().a(next);
}
}
}
}
public class c implements View.OnClickListener {
private QImageView dGb;
private QTextView dGc;
private View hmg;
private QTextView hmh;
private View hmi;
private View hmj;
private QImageView hmk;
private boolean hml;
public c(View view, QImageView qImageView, QTextView qTextView, QTextView qTextView2, View view2, View view3, QImageView qImageView2, boolean z) {
this.hmg = view;
this.dGb = qImageView;
this.dGc = qTextView;
this.hmh = qTextView2;
this.hmi = view2;
this.hmj = view3;
this.hmk = qImageView2;
this.hml = z;
}
public void a(bzq bzqVar) {
this.dGb.setImageResource(bzqVar.aLi());
this.dGc.setText(bzqVar.aLj());
switch (bzqVar.getState()) {
case -1:
this.hmg.setVisibility(8);
bzqVar.gO(false);
return;
case 0:
if (!this.hml) {
this.hmh.setText(bzqVar.aLk());
this.hmh.setVisibility(0);
this.hmi.setVisibility(0);
this.hmg.setVisibility(0);
this.hmg.setOnClickListener(this);
this.hmg.setSelected(true);
this.hmg.setTag(bzqVar);
}
this.hmj.setVisibility(0);
this.hmk.setVisibility(8);
bzqVar.gO(false);
return;
case 1:
if (!this.hml) {
this.hmh.setVisibility(8);
this.hmi.setVisibility(8);
this.hmg.setVisibility(0);
this.hmg.setOnClickListener(null);
this.hmg.setSelected(false);
this.hmg.setTag(null);
}
this.hmj.setVisibility(8);
this.hmk.setVisibility(0);
ClipDrawable clipDrawable = (ClipDrawable) this.hmk.getDrawable();
if (bzqVar.aLl()) {
bzqVar.gO(false);
clipDrawable.setLevel(0);
bzs.this.mHandler.postDelayed(new Runnable() {
@Override
public void run() {
c.this.aLu();
}
}, 500L);
return;
}
clipDrawable.setLevel(10000);
return;
default:
return;
}
}
@Override
public void onClick(View view) {
ahk xs;
aav kM;
bzq bzqVar = (bzq) view.getTag();
if (bzqVar != bzs.this.hlM) {
if (bzqVar == bzs.this.hlN) {
bzs.this.hlS = 7;
byr.aFN().aFU();
return;
} else {
if (bzqVar == bzs.this.hlO && (kM = (xs = ahk.xs()).kM(vv.a.b.eFP)) != null) {
bzs.this.hlS = 8;
xs.a(PiMain.aEd().bsn, vv.a.b.eFP, kM, new ahl() {
@Override
public void kH(int i) {
}
});
return;
}
return;
}
}
ahk xs2 = ahk.xs();
aav kM2 = xs2.kM(vv.a.b.eFR);
if (kM2 != null) {
bzs.this.hlS = 5;
xs2.a(PiMain.aEd().bsn, vv.a.b.eFR, kM2, new ahl() {
@Override
public void kH(int i) {
}
});
yz.c(PiMain.aEd().kH(), meri.service.usespermission.c.eOV, 4);
}
}
@TargetApi(14)
public void aLu() {
if (Build.VERSION.SDK_INT >= 14) {
bzo bzoVar = new bzo(0.0f, -90.0f, this.hmg.getWidth() / 2, this.hmg.getHeight() / 2, 0.0f, false);
final bzo bzoVar2 = new bzo(-90.0f, -270.0f, this.hmg.getWidth() / 2, this.hmg.getHeight() / 2, 0.0f, false);
final bzo bzoVar3 = new bzo(-270.0f, -360.0f, this.hmg.getWidth() / 2, this.hmg.getHeight() / 2, 0.0f, false);
AccelerateInterpolator accelerateInterpolator = new AccelerateInterpolator();
DecelerateInterpolator decelerateInterpolator = new DecelerateInterpolator();
bzoVar.setFillAfter(true);
bzoVar.setDuration(250L);
bzoVar.setInterpolator(accelerateInterpolator);
bzoVar.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
c.this.hmg.startAnimation(bzoVar2);
}
});
bzoVar2.setFillAfter(true);
bzoVar2.setDuration(1L);
bzoVar2.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
c.this.hmg.startAnimation(bzoVar3);
}
});
bzoVar3.setFillAfter(true);
bzoVar3.setDuration(250L);
bzoVar3.setInterpolator(decelerateInterpolator);
bzoVar3.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
@TargetApi(14)
public void onAnimationEnd(Animation animation) {
if (Build.VERSION.SDK_INT >= 14) {
ValueAnimator ofFloat = ValueAnimator.ofFloat(0.0f, 1.0f);
ofFloat.setDuration(500L);
ofFloat.setInterpolator(new DecelerateInterpolator());
ofFloat.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
@TargetApi(14)
public void onAnimationUpdate(ValueAnimator valueAnimator) {
if (Build.VERSION.SDK_INT >= 14) {
c.this.hmk.getDrawable().setLevel((int) (valueAnimator.getAnimatedFraction() * 10000.0f));
}
}
});
ofFloat.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animator) {
c.this.hmk.getDrawable().setLevel(10000);
}
});
ofFloat.start();
}
}
});
this.hmg.startAnimation(bzoVar);
}
}
}
}