百度手机卫士 v8.6.2版本的 MD5 值为:fa60cb367e40201705a2d9f9ce2cbfdf
以下内容为反编译后的 ety.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 cn.opda.a.phonoalbumshoushou.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.module.recommend.data.RelationalRecommendConstants;
import com.dianxinos.optimizer.web.WebBrowserActivity;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class ety extends abr implements View.OnClickListener, euu {
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 = RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW;
private final int ae = RelationalRecommendConstants.RECOMMEND_TYPE_ICON_ACTION;
private Dialog ao = null;
@Override
public View a(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
this.ac = layoutInflater.inflate(R.layout.jadx_deobf_0x00000964, 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 || eea.a(this.an)) {
T();
a(this.an);
ewe.bi(this.an);
return;
}
ewe.bj(this.an);
}
}
private void P() {
if (Build.VERSION.SDK_INT >= 19 && !hvt.d()) {
if (hvt.a(this.an)) {
this.af.setChecked(true);
bbd.a(this.an).m(true);
} else {
bbd.a(this.an).m(false);
this.af.setChecked(false);
}
} else {
this.af.setChecked(bbd.a(this.an).t());
}
this.ag.setChecked(exc.a(this.an));
this.ai.setChecked(exc.f(this.an));
this.aj.setChecked(exc.g(this.an) == esb.c);
if (this.af.b()) {
if (hvt.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();
eve.a(this.an).a();
P();
}
private void Q() {
this.af = (MmsPreference) c(R.id.jadx_deobf_0x00001631);
this.ag = (MmsPreference) c(R.id.jadx_deobf_0x00001632);
this.ah = (MmsPreference) c(R.id.jadx_deobf_0x00001635);
this.ai = (MmsPreference) c(R.id.jadx_deobf_0x00001634);
this.aj = (MmsPreference) c(R.id.jadx_deobf_0x00001633);
if (hux.c()) {
this.aj.setName(c().getString(R.string.jadx_deobf_0x00001633));
} else {
this.aj.setName(c().getString(R.string.jadx_deobf_0x000024ec));
}
this.ak = (MmsPreference) c(R.id.jadx_deobf_0x00001636);
this.al = (MmsPreference) c(R.id.jadx_deobf_0x00001637);
this.am = (MmsPreference) c(R.id.jadx_deobf_0x00001638);
this.af.setOnPrefenceChangeListener(this);
this.ag.setOnPrefenceChangeListener(this);
if (hvt.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) {
hxc.a(this.an, this.an.getString(R.string.jadx_deobf_0x00002498), R.drawable.mms_icon, ConversationList.class.getName());
ewe.aK(this.an);
return;
}
if (view == this.ak) {
b(new Intent(this.an, (Class<?>) FeedbackActivity.class));
ewe.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", "https://mshoujiweishi.baidu.com/appfaq/inbox");
intent.putExtra("extra_title", this.an.getResources().getString(R.string.jadx_deobf_0x00001638));
b(intent);
}
}
@Override
public void a(MmsPreference mmsPreference, Object obj) {
if (mmsPreference == this.ag) {
boolean booleanValue = ((Boolean) obj).booleanValue();
exc.a(this.an, booleanValue);
if (booleanValue) {
eve.a(this.an).f();
return;
} else {
eve.a(this.an).g();
exd.a(this.an).f(false);
return;
}
}
if (mmsPreference == this.ai) {
exc.d(this.an, ((Boolean) obj).booleanValue());
} else if (mmsPreference == this.aj) {
exc.e(this.an, true);
if (((Boolean) obj).booleanValue()) {
exc.a(this.an, esb.c);
} else {
exc.a(this.an, esb.b);
}
if (!exd.a(this.an).s()) {
exd.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 && !hvt.d()) {
S();
return;
}
eup eupVar = new eup(this.aa);
eupVar.setTitle(R.string.jadx_deobf_0x000028bb);
eupVar.a(R.drawable.jadx_deobf_0x000005a6, R.dimen.jadx_deobf_0x00000c4e, R.dimen.jadx_deobf_0x00000c4b);
eupVar.a(a(R.string.jadx_deobf_0x00002b3a));
eupVar.a(R.string.jadx_deobf_0x000021b5, new etz(this));
eupVar.b(R.string.jadx_deobf_0x00002175, null);
eupVar.show();
return;
}
if (Build.VERSION.SDK_INT >= 19 && !hvt.d()) {
if (!eea.a(this.aa)) {
a(eea.b(this.aa), RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW);
}
} else {
T();
a(this.an);
}
}
private void a(Context context) {
if (bzb.a(this.aa).d(this.aa.getIntent())) {
bzb a = bzb.a(context);
a.b(a.a(19));
}
}
private void S() {
List<ResolveInfo> queryIntentActivities;
PackageManager a = hxq.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);
}
euv euvVar = new euv(this.aa);
euvVar.a(R.drawable.jadx_deobf_0x000005a6, R.dimen.jadx_deobf_0x00000c4e, R.dimen.jadx_deobf_0x00000c4b);
euvVar.a(false);
euvVar.setTitle(R.string.jadx_deobf_0x000024e0);
euvVar.a(charSequenceArr, drawableArr);
euvVar.a(new eua(this, arrayList));
euvVar.b();
}
}
}
}
private void T() {
this.af.setChecked(true);
if (!hvt.c()) {
this.ag.setVisibility(0);
this.al.setVisibility(0);
bbd.a(this.an).m(true);
eve.a(this.an).d();
exd.a(this.an).c(false);
exd.a(this.an).d(false);
if (exc.a(this.an)) {
eve.a(this.an).f();
}
}
}
public void U() {
this.af.setChecked(false);
if (!hvt.c()) {
this.ag.setVisibility(8);
this.al.setVisibility(8);
bbd.a(this.an).m(false);
eve.a(this.an).e();
exd.a(this.an).c(false);
exd.a(this.an).d(false);
}
}
}