百度手机卫士 v8.1.5版本的 MD5 值为:15af71eae74e2f2b5b9f845fe77a4804
以下内容为反编译后的 eot.java 源代码,内容仅作参考
package dxoptimizer;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.baidu.sapi2.c.R;
import com.dianxinos.optimizer.module.feedback.FeedbackActivity;
import com.dianxinos.optimizer.module.mms.ui.ConversationList;
import com.dianxinos.optimizer.module.mms.ui.SettingActivity;
import com.dianxinos.optimizer.module.mms.ui.view.MmsPreference;
import com.dianxinos.optimizer.web.WebBrowserActivity;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class eot extends abh implements View.OnClickListener, epp {
private MmsPreference af;
private MmsPreference ag;
private MmsPreference ah;
private MmsPreference ai;
private MmsPreference aj;
private MmsPreference ak;
private MmsPreference al;
private MmsPreference am;
private Context an;
private final int ad = com.baidu.location.b.g.q;
private final int ae = 102;
private Dialog ao = null;
@Override
public View a(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
this.ac = layoutInflater.inflate(R.layout.jadx_deobf_0x00000855, viewGroup, false);
return this.ac;
}
@Override
public void a(View view, Bundle bundle) {
super.a(view, bundle);
this.an = getActivity().getApplicationContext();
Q();
}
@Override
public void a(int i, int i2, Intent intent) {
if (i == 102) {
getActivity();
if (i2 == -1) {
U();
return;
}
return;
}
if (i == 101) {
getActivity();
if (i2 == -1 || dwl.a(this.an)) {
T();
a(this.an);
erd.bj(this.an);
return;
}
erd.bk(this.an);
}
}
private void P() {
if (Build.VERSION.SDK_INT >= 19 && !hkd.d()) {
if (hkd.a(this.an)) {
this.af.setChecked(true);
beb.a(this.an).q(true);
} else {
beb.a(this.an).q(false);
this.af.setChecked(false);
}
} else {
this.af.setChecked(beb.a(this.an).t());
}
this.ag.setChecked(esa.a(this.an));
this.ai.setChecked(esa.f(this.an));
this.aj.setChecked(esa.g(this.an) == emw.c);
if (this.af.b()) {
if (hkd.c()) {
this.ag.setVisibility(8);
} else {
this.ag.setVisibility(0);
}
this.al.setVisibility(0);
return;
}
this.ag.setVisibility(8);
this.al.setVisibility(8);
}
@Override
public void k() {
super.k();
if (this.ao != null) {
this.ao.dismiss();
this.ao = null;
}
}
@Override
public void j() {
super.j();
epz.a(this.an).a();
P();
}
private void Q() {
this.af = (MmsPreference) b(R.id.jadx_deobf_0x000013ff);
this.ag = (MmsPreference) b(R.id.jadx_deobf_0x00001400);
this.ah = (MmsPreference) b(R.id.jadx_deobf_0x00001403);
this.ai = (MmsPreference) b(R.id.jadx_deobf_0x00001402);
this.aj = (MmsPreference) b(R.id.jadx_deobf_0x00001401);
if (hjg.c()) {
this.aj.setName(c().getString(R.string.jadx_deobf_0x00001401));
} else {
this.aj.setName(c().getString(R.string.jadx_deobf_0x0000218f));
}
this.ak = (MmsPreference) b(R.id.jadx_deobf_0x00001404);
this.al = (MmsPreference) b(R.id.jadx_deobf_0x00001405);
this.am = (MmsPreference) b(R.id.jadx_deobf_0x00001406);
this.af.setOnPrefenceChangeListener(this);
this.ag.setOnPrefenceChangeListener(this);
if (hkd.c()) {
this.ag.setVisibility(8);
}
this.ai.setOnPrefenceChangeListener(this);
this.aj.setOnPrefenceChangeListener(this);
this.af.setOnClickListener(this);
this.ah.setOnClickListener(this);
this.ak.setOnClickListener(this);
this.al.setOnClickListener(this);
this.am.setOnClickListener(this);
}
@Override
public void onClick(View view) {
if (view == this.af) {
R();
return;
}
if (view == this.ah) {
hll.a(this.an, this.an.getString(R.string.jadx_deobf_0x0000213b), R.drawable.mms_icon, ConversationList.class.getName());
erd.aL(this.an);
return;
}
if (view == this.ak) {
b(new Intent(this.an, (Class<?>) FeedbackActivity.class));
erd.u(this.an);
} else if (view == this.al) {
((SettingActivity) getActivity()).h();
} else if (view == this.am) {
Intent intent = new Intent(this.an, (Class<?>) WebBrowserActivity.class);
intent.putExtra("extra_url", "http://m.shoujiweishi.baidu.com/appfaq/inbox");
intent.putExtra("extra_title", this.an.getResources().getString(R.string.jadx_deobf_0x00001406));
b(intent);
}
}
@Override
public void a(MmsPreference mmsPreference, Object obj) {
if (mmsPreference == this.ag) {
boolean booleanValue = ((Boolean) obj).booleanValue();
esa.a(this.an, booleanValue);
if (booleanValue) {
epz.a(this.an).f();
return;
} else {
epz.a(this.an).g();
esb.a(this.an).f(false);
return;
}
}
if (mmsPreference == this.ai) {
esa.d(this.an, ((Boolean) obj).booleanValue());
} else if (mmsPreference == this.aj) {
esa.e(this.an, true);
if (((Boolean) obj).booleanValue()) {
esa.a(this.an, emw.c);
} else {
esa.a(this.an, emw.b);
}
if (!esb.a(this.an).s()) {
esb.a(this.an).j(true);
}
getActivity().finish();
a(new Intent(this.an, (Class<?>) SettingActivity.class));
}
}
private void R() {
if (this.af.b()) {
if (Build.VERSION.SDK_INT >= 19 && !hkd.d()) {
S();
return;
}
epk epkVar = new epk(this.aa);
epkVar.setTitle(R.string.jadx_deobf_0x000024fe);
epkVar.a(R.drawable.jadx_deobf_0x000004df, R.dimen.jadx_deobf_0x00000b04, R.dimen.jadx_deobf_0x00000b01);
epkVar.a(a(R.string.jadx_deobf_0x00002779));
epkVar.a(R.string.jadx_deobf_0x00001f36, new eou(this));
epkVar.b(R.string.jadx_deobf_0x00001ef6, null);
epkVar.show();
return;
}
if (Build.VERSION.SDK_INT >= 19 && !hkd.d()) {
if (!dwl.a(this.aa)) {
a(dwl.b(this.aa), com.baidu.location.b.g.q);
}
} else {
T();
a(this.an);
}
}
private void a(Context context) {
if (caa.a(this.aa).d(this.aa.getIntent())) {
caa a = caa.a(context);
a.b(a.a(19));
}
}
private void S() {
List<ResolveInfo> queryIntentActivities;
PackageManager a = hly.a(this.aa);
if (a != null) {
Intent intent = new Intent("android.provider.Telephony.WAP_PUSH_DELIVER");
intent.setDataAndType(null, "application/vnd.wap.mms-message");
List<ResolveInfo> queryBroadcastReceivers = a.queryBroadcastReceivers(intent, 0);
if (queryBroadcastReceivers != null && !queryBroadcastReceivers.isEmpty() && (queryIntentActivities = a.queryIntentActivities(new Intent("android.intent.action.SENDTO", Uri.fromParts("smsto", "", null)), 0)) != null && !queryIntentActivities.isEmpty()) {
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
for (ResolveInfo resolveInfo : queryBroadcastReceivers) {
Iterator<ResolveInfo> it = queryIntentActivities.iterator();
while (true) {
if (it.hasNext()) {
ResolveInfo next = it.next();
String str = resolveInfo.activityInfo.packageName;
if (!arrayList2.contains(str) && str.equals(next.activityInfo.packageName)) {
arrayList.add(resolveInfo);
arrayList2.add(str);
break;
}
}
}
}
if (arrayList != null && !arrayList.isEmpty()) {
int size = arrayList.size();
CharSequence[] charSequenceArr = new CharSequence[size];
Drawable[] drawableArr = new Drawable[size];
for (int i = 0; i < size; i++) {
drawableArr[i] = ((ResolveInfo) arrayList.get(i)).loadIcon(a);
charSequenceArr[i] = ((ResolveInfo) arrayList.get(i)).loadLabel(a);
}
epq epqVar = new epq(this.aa);
epqVar.a(R.drawable.jadx_deobf_0x000004df, R.dimen.jadx_deobf_0x00000b04, R.dimen.jadx_deobf_0x00000b01);
epqVar.a(false);
epqVar.setTitle(R.string.jadx_deobf_0x00002183);
epqVar.a(charSequenceArr, drawableArr);
epqVar.a(new eov(this, arrayList));
epqVar.b();
}
}
}
}
private void T() {
this.af.setChecked(true);
if (!hkd.c()) {
this.ag.setVisibility(0);
this.al.setVisibility(0);
beb.a(this.an).q(true);
epz.a(this.an).d();
esb.a(this.an).c(false);
esb.a(this.an).d(false);
if (esa.a(this.an)) {
epz.a(this.an).f();
}
}
}
public void U() {
this.af.setChecked(false);
if (!hkd.c()) {
this.ag.setVisibility(8);
this.al.setVisibility(8);
beb.a(this.an).q(false);
epz.a(this.an).e();
esb.a(this.an).c(false);
esb.a(this.an).d(false);
}
}
}