百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443
以下内容为反编译后的 fcu.java 源代码,内容仅作参考
package dxoptimizer;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.Html;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import cn.opda.a.phonoalbumshoushou.R;
import com.dianxinos.optimizer.module.netflowmgr.ui.activity.NetFlowUnleashedDetailActivity;
import com.dianxinos.optimizer.ui.DXEmptyView;
import com.dianxinos.optimizer.ui.DXLoadingInside;
import com.dianxinos.optimizer.ui.DXPageBottomButton;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
public class fcu extends abr implements View.OnClickListener, AdapterView.OnItemClickListener, avu, awx {
private Context ad;
private Handler ae;
private avo af;
private fcx ag;
private DXLoadingInside ah;
private DXEmptyView ai;
private View aj;
private TextView ak;
private ListView al;
private DXPageBottomButton am;
private LinearLayout an;
private List<fcy> ao = new ArrayList();
private boolean ap = false;
private boolean aq = false;
private long ar = 0;
@Override
public void handleMessage(Message message) {
if (!this.ap) {
switch (message.what) {
case 0:
this.ah.a(message.arg1);
return;
case 1:
Object[] objArr = (Object[]) message.obj;
List list = (List) objArr[0];
if (list.size() == 0) {
R();
return;
}
this.ar = ((Long) objArr[1]).longValue();
a(this.ar);
this.ao.addAll(list);
this.ah.setVisibility(8);
this.aj.setVisibility(0);
this.ag.notifyDataSetChanged();
icu.a("netmgr", "s_pwcs", (Number) 1);
return;
case 2:
a((String) message.obj);
a(this.ar);
if (this.ao.size() == 0) {
d(false);
return;
}
return;
default:
return;
}
}
}
@Override
public void L() {
super.L();
if (!this.aq) {
this.aq = true;
icu.a("netmgr", "s_unps", (Number) 1);
}
}
private void a(long j) {
String a;
boolean d = hyn.d(System.currentTimeMillis());
String a2 = hym.a(j, false);
if (d) {
a = a(R.string.jadx_deobf_0x000026aa, hyn.c(), hyn.d(), a2);
} else {
a = a(R.string.jadx_deobf_0x000026aa, hyn.b(), hyn.e(), a2);
}
this.ak.setText(Html.fromHtml(a));
}
private void a(String str) {
for (fcy fcyVar : this.ao) {
if (str.equals(fcyVar.b)) {
this.ao.remove(fcyVar);
this.ag.notifyDataSetChanged();
this.ar -= fcyVar.e;
return;
}
}
}
@Override
public void d(Bundle bundle) {
super.d(bundle);
this.ad = getActivity().getApplicationContext();
this.ae = new aww(this);
this.af = avo.a(this.ad);
this.ag = new fcx(this, this.ad, this.ao);
if (ezg.c(this.ad)) {
ezg.a(this.ad, System.currentTimeMillis());
ezg.c(this.ad, false);
}
}
@Override
public View a(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
this.ac = layoutInflater.inflate(R.layout.jadx_deobf_0x000009e0, viewGroup, false);
P();
T();
S();
return this.ac;
}
@Override
public void j() {
super.j();
Q();
}
private void P() {
this.ah = (DXLoadingInside) c(R.id.jadx_deobf_0x00001829);
this.ai = (DXEmptyView) c(R.id.jadx_deobf_0x0000182a);
this.an = (LinearLayout) c(R.id.jadx_deobf_0x000005f3);
this.aj = c(R.id.jadx_deobf_0x0000182b);
this.ak = (TextView) c(R.id.jadx_deobf_0x0000182c);
this.al = (ListView) c(R.id.jadx_deobf_0x0000182d);
this.al.setOnItemClickListener(this);
this.al.setAdapter((ListAdapter) this.ag);
this.am = (DXPageBottomButton) c(R.id.jadx_deobf_0x0000182e);
}
private void Q() {
this.am.a(0);
this.am.setText(R.string.jadx_deobf_0x000026ab);
this.am.setOnClickListener(this);
}
private void R() {
if (hyn.a(ezg.d(this.ad), System.currentTimeMillis())) {
d(true);
} else {
d(false);
this.am.setVisibility(8);
}
}
private void d(boolean z) {
this.ak.setVisibility(8);
this.ai.setVisibility(0);
this.ah.setVisibility(8);
this.aj.setVisibility(8);
if (z) {
((ImageView) this.ac.findViewById(R.id.jadx_deobf_0x00001715)).setImageDrawable(c().getDrawable(R.drawable.jadx_deobf_0x000005f3));
this.an.setVisibility(0);
this.ai.setVisibility(8);
} else {
this.ai.setTips(R.string.jadx_deobf_0x000026a9);
this.ai.setImage(R.drawable.jadx_deobf_0x00000341);
}
}
private void S() {
this.af.a(this);
}
private void T() {
this.ae.obtainMessage(0, 0, 0).sendToTarget();
hti.a().a(new fcv(this));
}
@Override
public void onClick(View view) {
if (view == this.am) {
String str = null;
if (1 == hqy.b(this.aa, "num_id", -1)) {
str = hra.a(this.aa, "num_id");
}
if (TextUtils.isEmpty(str)) {
str = a(R.string.jadx_deobf_0x000026b3, U(), hym.a(this.ar, false));
}
a(getActivity().getWindow().getDecorView(), str);
}
}
private String U() {
StringBuffer stringBuffer = new StringBuffer();
int i = 0;
Iterator<fcy> it = this.ao.iterator();
do {
int i2 = i;
if (it.hasNext()) {
fcy next = it.next();
if (i2 != 0) {
stringBuffer.append(a(R.string.jadx_deobf_0x000026a8));
}
stringBuffer.append(next.c);
i = i2 + 1;
} else {
return stringBuffer.toString();
}
} while (i != 3);
return stringBuffer.toString();
}
private void a(View view, String str) {
gim.a(this.aa, view, str, "https://mshoujiweishi.baidu.com/?from=sharefrom855", a(R.string.jadx_deobf_0x00002660), "sks_af", a(R.string.jadx_deobf_0x0000265f));
icu.a(this.aa);
icu.a("s2s", "sks_af", (Number) 1);
}
@Override
public void n() {
super.n();
this.ap = true;
this.aq = false;
this.af.b(this);
}
public void a(List<fcy> list) {
Collections.sort(list, new fcw(this));
}
@Override
public void a(avt avtVar) {
if (avtVar != null && (avtVar instanceof avr)) {
avr avrVar = (avr) avtVar;
if (avrVar.c == 3) {
this.ae.obtainMessage(2, avrVar.a).sendToTarget();
}
}
}
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {
fcy fcyVar = this.ao.get(i);
Intent intent = new Intent(this.ad, (Class<?>) NetFlowUnleashedDetailActivity.class);
intent.putExtra("extra.pkg", fcyVar.b);
b(intent);
icu.a(this.ad);
icu.a("anf", "de", (Number) 1);
}
}