百度手机卫士 v8.1.5版本的 MD5 值为:15af71eae74e2f2b5b9f845fe77a4804
以下内容为反编译后的 frv.java 源代码,内容仅作参考
package dxoptimizer;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.baidu.sapi2.c.R;
import com.dianxinos.optimizer.ui.DxRevealButton;
public class frv extends frh implements View.OnClickListener {
protected ImageView q;
protected TextView r;
protected TextView s;
protected DxRevealButton t;
protected String u;
protected String v;
protected String w;
private Intent x;
private String y;
public frv(Context context, String str) {
super(context, R.layout.jadx_deobf_0x000007a4);
this.f = true;
this.d = 1;
this.y = str;
char c = 65535;
switch (str.hashCode()) {
case -1902311919:
if (str.equals("trashclean")) {
c = 1;
break;
}
break;
case -1280107437:
if (str.equals("phoneacc")) {
c = 0;
break;
}
break;
}
switch (c) {
case 0:
this.v = context.getResources().getString(R.string.jadx_deobf_0x00001e6a);
this.w = context.getResources().getString(R.string.jadx_deobf_0x00001e67);
this.u = context.getResources().getString(R.string.jadx_deobf_0x00001e66);
this.k = R.drawable.jadx_deobf_0x00000261;
this.l = R.drawable.jadx_deobf_0x0000025e;
this.x = hna.a(context, context.getString(R.string.jadx_deobf_0x000020f8), "http://dxurl.cn/own/yhds/sjjs-kepu", true, true);
return;
case 1:
this.v = context.getResources().getString(R.string.jadx_deobf_0x00001e69);
this.w = context.getResources().getString(R.string.jadx_deobf_0x00001e68);
this.u = context.getResources().getString(R.string.jadx_deobf_0x00001e66);
this.k = R.drawable.jadx_deobf_0x00000261;
this.l = R.drawable.jadx_deobf_0x0000025e;
this.x = hna.a(context, context.getString(R.string.jadx_deobf_0x000020f8), "http://dxurl.cn/own/yhds/ljql-kepu", true, true);
return;
default:
return;
}
}
@Override
public void a(ViewGroup viewGroup, View view) {
super.a(viewGroup, view);
this.q = (ImageView) view.findViewById(R.id.jadx_deobf_0x00001164);
this.r = (TextView) view.findViewById(R.id.jadx_deobf_0x00001165);
this.s = (TextView) view.findViewById(R.id.jadx_deobf_0x00001166);
this.t = (DxRevealButton) view.findViewById(R.id.jadx_deobf_0x00001167);
this.r.setText(this.v);
this.s.setText(this.w);
this.t.setText(this.u);
if (this.k > 0) {
this.q.setImageResource(this.k);
}
if (this.l > 0) {
this.q.setBackgroundResource(this.l);
}
this.t.setOnClickListener(this);
a(this);
}
@Override
public boolean e() {
String str = this.y;
char c = 65535;
switch (str.hashCode()) {
case -1902311919:
if (str.equals("trashclean")) {
c = 1;
break;
}
break;
case -1280107437:
if (str.equals("phoneacc")) {
c = 0;
break;
}
break;
}
switch (c) {
case 0:
if (!frg.e() && frg.f()) {
frg.a(true);
return true;
}
return false;
case 1:
if (!frg.g() && frg.h()) {
frg.c(true);
return true;
}
return false;
default:
return false;
}
}
@Override
public void onClick(View view) {
a().startActivity(this.x);
fsh.b(a(), this.d);
}
}