MD5 校验值:5ef3f775189f42f146cf0788a99eebd7
UnknownContactActivity.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.callerid.block.mvc.controller; import android.annotation.SuppressLint; import android.content.BroadcastReceiver; import android.content.ClipData; import android.content.ClipboardManager; import android.content.ContentResolver; import android.content.ContentUris; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.res.Resources; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Typeface; import android.graphics.drawable.ColorDrawable; import android.net.Uri; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.MessageQueue; import android.provider.ContactsContract; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.view.animation.AnimationUtils; import android.view.animation.LinearInterpolator; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.PopupWindow; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import androidx.constraintlayout.widget.ConstraintLayout; import com.callerid.block.R; import com.callerid.block.bean.CollectInfo; import com.callerid.block.bean.EZBlackList; import com.callerid.block.customview.AppBarStateChangeListener; import com.callerid.block.customview.LImageButton; import com.callerid.block.main.BaseActivity; import com.callerid.block.main.EZCallApplication; import com.callerid.block.mvc.controller.UnknownContactActivity; import com.callerid.block.search.CallLogBean; import com.callerid.block.sms.MessageBoxListActivity; import com.google.android.gms.ads.a; import com.google.android.gms.ads.b; import com.google.android.gms.ads.mediation.MediationNativeAdapter; import com.google.android.gms.ads.nativead.NativeAdView; import com.google.android.gms.ads.nativead.a; import com.google.android.material.appbar.AppBarLayout; import com.rey.material.app.Dialog; import com.rey.material.app.SimpleDialog; import f5.r; import java.lang.ref.WeakReference; import java.util.HashMap; import u5.a; import y3.r1; import y3.s1; public class UnknownContactActivity extends BaseActivity implements View.OnClickListener { private static int J0; private int A0; private ImageView B0; private ImageView C0; private int D0; private int E0; private int F0; private int G0; private int H0; private int I0; private LImageButton O; private LImageButton P; private ImageView Q; private TextView R; private TextView S; private TextView T; private TextView U; private TextView V; private CallLogBean W; private PopupWindow X; private TextView Y; private TextView Z; private RelativeLayout f7541a0; private LinearLayout f7542b0; private Typeface f7543c0; RelativeLayout f7544d0; private int f7546f0; private ImageView f7547g0; private FrameLayout f7548h0; private View f7549i0; private e f7550j0; private SimpleDialog.Builder f7551k0; private int f7552l0; private int f7553m0; private int f7554n0; private FrameLayout f7555o0; private LImageButton f7556p0; private LImageButton f7557q0; private TextView f7558r0; private ConstraintLayout f7559s0; private int f7560t0; private HashMap<String, Integer> f7561u0; private com.google.android.gms.ads.a f7562v0; private LinearLayout f7563w0; private b4.d f7564x0; private int f7566z0; private boolean f7545e0 = false; private boolean f7565y0 = true; public class AnonymousClass4 extends SimpleDialog.Builder { AnonymousClass4(int i10) { super(i10); } public void A(String str) { UnknownContactActivity.this.c1(); Toast.makeText(UnknownContactActivity.this.getApplicationContext(), UnknownContactActivity.this.getResources().getString(R.string.blocked_tip), 0).show(); CollectInfo collectInfo = new CollectInfo(); collectInfo.setNumber(str); collectInfo.setUser_blocked("1"); collectInfo.setUser_commented("0"); collectInfo.setUser_reported("0"); collectInfo.setUser_upload_recording("0"); j3.i.o(EZCallApplication.d(), collectInfo); try { Window window = UnknownContactActivity.this.getWindow(); window.addFlags(Integer.MIN_VALUE); window.setStatusBarColor(UnknownContactActivity.this.f7552l0); } catch (Exception e10) { e10.printStackTrace(); } } public void B(final String str, boolean z10) { if (z10) { h3.b.c(str, new f3.a() { @Override public final void a() { UnknownContactActivity.AnonymousClass4.this.z(); } }); return; } EZBlackList eZBlackList = new EZBlackList(); eZBlackList.setName(""); eZBlackList.setNumber(str); h3.b.a(eZBlackList, new f3.a() { @Override public final void a() { UnknownContactActivity.AnonymousClass4.this.A(str); } }); } public void x(Dialog dialog, boolean z10) { Resources resources; int i10; if (z10) { resources = UnknownContactActivity.this.getResources(); i10 = R.color.spam; } else { resources = UnknownContactActivity.this.getResources(); i10 = R.color.colorPrimary; } r1.m0(dialog, resources.getColor(i10)); } public void y() { b3.h.c().h(UnknownContactActivity.this.W.o()); if (b3.h.c().f(UnknownContactActivity.this.W.o()) != null) { s0.a.b(UnknownContactActivity.this.getApplicationContext()).d(new Intent("com.callerid.block.RELOAD_DATA_VEST")); } } public void z() { if (UnknownContactActivity.this.W.K() != null && !"".equals(UnknownContactActivity.this.W.K()) && UnknownContactActivity.this.W.v() != null && !"".equals(UnknownContactActivity.this.W.v())) { new Thread(new Runnable() { @Override public final void run() { UnknownContactActivity.AnonymousClass4.this.y(); } }).start(); } UnknownContactActivity.this.c1(); Toast.makeText(UnknownContactActivity.this.getApplicationContext(), UnknownContactActivity.this.getResources().getString(R.string.remove_blocklist), 0).show(); } @Override public void a(com.rey.material.app.a aVar) { super.a(aVar); } @Override public void f(com.rey.material.app.a aVar) { super.f(aVar); try { if (UnknownContactActivity.this.W.o() != null) { final String replace = UnknownContactActivity.this.W.o().replace("-", ""); if ("".equals(replace)) { return; } h3.b.b(replace, new h3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.AnonymousClass4.this.B(replace, z10); } }); } } catch (Exception e10) { e10.printStackTrace(); } } @Override protected void j(final Dialog dialog) { dialog.K(-1, -2); dialog.r0(y3.n1.c()); if (UnknownContactActivity.this.W.K() == null || "".equals(UnknownContactActivity.this.W.K()) || UnknownContactActivity.this.W.v() == null || "".equals(UnknownContactActivity.this.W.v())) { h3.b.b(UnknownContactActivity.this.W.o(), new h3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.AnonymousClass4.this.x(dialog, z10); } }); } else if (UnknownContactActivity.this.W.V()) { UnknownContactActivity.this.c1(); } } } public class a extends f5.b { a() { } @Override public void m(f5.g gVar) { super.m(gVar); if (y3.a0.f34733a) { y3.a0.a("admob", "onAdFailedToLoad:" + gVar.toString()); } if (UnknownContactActivity.F0(UnknownContactActivity.this) < 1) { if (UnknownContactActivity.this.f7562v0 != null) { UnknownContactActivity.this.f7562v0.a(new b.a().c()); } } else { UnknownContactActivity.this.f7563w0.setVisibility(8); UnknownContactActivity.this.f7548h0.setVisibility(8); UnknownContactActivity.this.f7564x0.a(); UnknownContactActivity.this.f7565y0 = false; } } @Override public void x() { super.x(); if (y3.a0.f34733a) { y3.a0.a("admob", "onAdLoaded"); } } @Override public void y() { super.y(); } } public class b extends AppBarStateChangeListener { b() { } public void f(boolean z10) { TextView textView; int i10; if (!z10) { textView = UnknownContactActivity.this.S; i10 = 8; } else { if ("".equals(UnknownContactActivity.this.S.getText().toString())) { return; } textView = UnknownContactActivity.this.S; i10 = 0; } textView.setVisibility(i10); } public void g(boolean z10) { TextView textView; int i10; if (!z10) { textView = UnknownContactActivity.this.S; i10 = 8; } else { if ("".equals(UnknownContactActivity.this.S.getText().toString())) { return; } textView = UnknownContactActivity.this.S; i10 = 0; } textView.setVisibility(i10); } public void h(boolean z10) { TextView textView; int i10; if (!z10) { textView = UnknownContactActivity.this.S; i10 = 8; } else { if ("".equals(UnknownContactActivity.this.S.getText().toString())) { return; } textView = UnknownContactActivity.this.S; i10 = 0; } textView.setVisibility(i10); } @Override public void b(AppBarLayout appBarLayout, AppBarStateChangeListener.State state) { TextView textView; try { if (y3.a0.f34733a) { y3.a0.a("tony", "state:" + state); } if (state == AppBarStateChangeListener.State.EXPANDED) { UnknownContactActivity.this.R.setVisibility(0); UnknownContactActivity.this.T.setVisibility(0); h3.b.b(UnknownContactActivity.this.W.o(), new h3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.b.this.f(z10); } }); textView = UnknownContactActivity.this.f7558r0; } else { if (state == AppBarStateChangeListener.State.COLLAPSED) { UnknownContactActivity.this.R.setVisibility(4); UnknownContactActivity.this.T.setVisibility(4); h3.b.b(UnknownContactActivity.this.W.o(), new h3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.b.this.g(z10); } }); UnknownContactActivity.this.f7558r0.setVisibility(0); return; } UnknownContactActivity.this.R.setVisibility(0); UnknownContactActivity.this.T.setVisibility(0); h3.b.b(UnknownContactActivity.this.W.o(), new h3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.b.this.h(z10); } }); textView = UnknownContactActivity.this.f7558r0; } textView.setVisibility(8); } catch (Exception e10) { e10.printStackTrace(); } } } public class c implements h3.a { c() { } @Override public void a(boolean z10) { SimpleDialog.Builder builder; StringBuilder sb2; String b10 = y3.t0.b(UnknownContactActivity.this.W.o()); if (z10) { UnknownContactActivity.this.f7551k0.m(UnknownContactActivity.this.getResources().getString(R.string.unblock_big)).h(UnknownContactActivity.this.getResources().getString(R.string.cancel_dialog)); builder = UnknownContactActivity.this.f7551k0; sb2 = new StringBuilder(); sb2.append(UnknownContactActivity.this.getResources().getString(R.string.unblock)); sb2.append(" "); } else { UnknownContactActivity.this.f7551k0.m(UnknownContactActivity.this.getResources().getString(R.string.block_big)).h(UnknownContactActivity.this.getResources().getString(R.string.cancel_dialog)); builder = UnknownContactActivity.this.f7551k0; sb2 = new StringBuilder(); sb2.append(UnknownContactActivity.this.getResources().getString(R.string.block)); sb2.append(" "); sb2.append(b10); b10 = " ?"; } sb2.append(b10); builder.o(sb2.toString()); UnknownContactActivity.this.f7551k0.r(y3.n1.c()); com.rey.material.app.a m22 = com.rey.material.app.a.m2(UnknownContactActivity.this.f7551k0); androidx.fragment.app.q l10 = UnknownContactActivity.this.R().l(); l10.d(m22, getClass().getSimpleName()); l10.j(); } } class d implements MessageQueue.IdleHandler { d() { } @Override public boolean queueIdle() { return false; } } class e extends BroadcastReceiver { e() { } @Override public void onReceive(Context context, Intent intent) { try { if (intent.getAction() == null || !"com.callerid.block.CLOSE_AD_VEST".equals(intent.getAction())) { return; } UnknownContactActivity.this.f7548h0.setVisibility(8); } catch (Exception e10) { e10.printStackTrace(); } } } public class f extends AsyncTask<Void, Void, Bitmap> { public Long f7572a; public ImageView f7573b; public Context f7574c; public f(Context context, ImageView imageView, Long l10) { this.f7572a = l10; this.f7573b = imageView; this.f7574c = context; } @Override public Bitmap doInBackground(Void... voidArr) { Cursor cursor; Bitmap bitmap = null; try { cursor = this.f7574c.getContentResolver().query(ContentUris.withAppendedId(ContactsContract.Data.CONTENT_URI, this.f7572a.longValue()), new String[]{"data15"}, null, null, null); if (cursor != null) { try { if (cursor.moveToFirst() && !cursor.isNull(0)) { byte[] blob = cursor.getBlob(0); bitmap = BitmapFactory.decodeByteArray(blob, 0, blob.length, null); } } catch (Exception e10) { e = e10; y3.a0.a("error_contact", e.getMessage() + ""); if (cursor != null) { } return bitmap; } } } catch (Exception e11) { e = e11; cursor = null; } if (cursor != null) { cursor.close(); } return bitmap; } @Override public void onPostExecute(Bitmap bitmap) { super.onPostExecute(bitmap); if (bitmap == null) { return; } this.f7573b.setImageBitmap(bitmap); } @Override protected void onPreExecute() { super.onPreExecute(); } } private static class g extends AsyncTask<Void, Void, Void> { WeakReference<UnknownContactActivity> f7576a; g(UnknownContactActivity unknownContactActivity) { this.f7576a = new WeakReference<>(unknownContactActivity); } public static void c(UnknownContactActivity unknownContactActivity) { Toast.makeText(unknownContactActivity, unknownContactActivity.getResources().getString(R.string.delete_success), 0).show(); Intent intent = new Intent(); intent.setAction("com.callerid.block.RELOAD_DATA_VEST"); s0.a.b(unknownContactActivity).d(intent); unknownContactActivity.finish(); unknownContactActivity.overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out); } @Override public Void doInBackground(Void... voidArr) { UnknownContactActivity unknownContactActivity = this.f7576a.get(); if (unknownContactActivity == null) { return null; } try { Uri parse = Uri.parse("content://com.android.contacts/data"); Uri parse2 = Uri.parse("content://com.android.contacts/raw_contacts"); ContentResolver contentResolver = unknownContactActivity.getContentResolver(); contentResolver.delete(parse2, "display_name=?", new String[]{unknownContactActivity.W.n()}); contentResolver.delete(parse, "raw_contact_id=?", new String[]{unknownContactActivity.W.u() + ""}); contentResolver.delete(parse, "data1=?", new String[]{unknownContactActivity.W.n()}); y3.a0.a("sunny", "删除时的id:" + unknownContactActivity.W.u()); return null; } catch (Exception e10) { e10.printStackTrace(); return null; } } @Override public void onPostExecute(Void r52) { super.onPostExecute(r52); final UnknownContactActivity unknownContactActivity = this.f7576a.get(); if (unknownContactActivity != null) { new Handler().postDelayed(new Runnable() { @Override public final void run() { UnknownContactActivity.g.c(UnknownContactActivity.this); } }, 300L); } } } public static class h extends AsyncTask<Void, Void, Integer> { WeakReference<UnknownContactActivity> f7577a; h(UnknownContactActivity unknownContactActivity) { this.f7577a = new WeakReference<>(unknownContactActivity); } @Override public Integer doInBackground(Void... voidArr) { UnknownContactActivity unknownContactActivity = this.f7577a.get(); return Integer.valueOf(unknownContactActivity != null ? r1.L(EZCallApplication.d(), unknownContactActivity.W.o()) : 0); } @Override public void onPostExecute(Integer num) { super.onPostExecute(num); try { UnknownContactActivity unknownContactActivity = this.f7577a.get(); if (unknownContactActivity != null) { y3.s.c(unknownContactActivity, ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, num.intValue()), "", UnknownContactActivity.J0, unknownContactActivity.Q); } } catch (Exception e10) { e10.printStackTrace(); } } } public static class i extends AsyncTask<Void, Void, String> { private final int f7578a; private final int f7579b; WeakReference<UnknownContactActivity> f7580c; i(UnknownContactActivity unknownContactActivity) { this.f7580c = new WeakReference<>(unknownContactActivity); this.f7578a = y3.k1.a(unknownContactActivity, R.attr.colorPrimary, R.color.colorPrimary); this.f7579b = y3.k1.a(unknownContactActivity, R.attr.colorPrimaryDark, R.color.colorPrimaryDark); } @Override public String doInBackground(Void... voidArr) { UnknownContactActivity unknownContactActivity = this.f7580c.get(); if (unknownContactActivity == null) { return null; } String k10 = r1.k(EZCallApplication.d(), unknownContactActivity.W.o()); y3.a0.a("getcontactname", "name:" + k10); return k10; } @Override public void onPostExecute(String str) { super.onPostExecute(str); UnknownContactActivity unknownContactActivity = this.f7580c.get(); if (unknownContactActivity == null || str == null) { return; } unknownContactActivity.P.setVisibility(0); unknownContactActivity.f7545e0 = true; unknownContactActivity.R.setText(str); unknownContactActivity.f7558r0.setText(str); unknownContactActivity.f7542b0.setVisibility(8); unknownContactActivity.W.A0(str); unknownContactActivity.f7544d0.setVisibility(0); r1.l0(unknownContactActivity, this.f7579b); unknownContactActivity.f7541a0.setBackgroundColor(this.f7578a); unknownContactActivity.f7559s0.setBackgroundColor(this.f7578a); unknownContactActivity.S.setVisibility(8); } } static int F0(UnknownContactActivity unknownContactActivity) { int i10 = unknownContactActivity.f7566z0; unknownContactActivity.f7566z0 = i10 + 1; return i10; } private void b1(com.google.android.gms.ads.nativead.a aVar, NativeAdView nativeAdView) { try { if (this.f7548h0 != null) { com.callerid.block.util.gg.a.a(aVar, nativeAdView); this.f7548h0.removeAllViews(); this.f7548h0.addView(nativeAdView); this.f7563w0.setVisibility(0); this.f7548h0.setVisibility(0); } } catch (Exception e10) { e10.printStackTrace(); } } public void c1() { CallLogBean callLogBean = this.W; if (callLogBean == null || callLogBean.o() == null || "".equals(this.W.o())) { return; } h3.b.b(this.W.o(), new h3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.this.f1(z10); } }); } private void d1() { View inflate = LayoutInflater.from(this).inflate(R.layout.popuwindow_contact, (ViewGroup) null); RelativeLayout relativeLayout = (RelativeLayout) inflate.findViewById(R.id.rl_delete); this.f7544d0 = relativeLayout; relativeLayout.setVisibility(8); RelativeLayout relativeLayout2 = (RelativeLayout) inflate.findViewById(R.id.rl_copy); RelativeLayout relativeLayout3 = (RelativeLayout) inflate.findViewById(R.id.rl_edit); RelativeLayout relativeLayout4 = (RelativeLayout) inflate.findViewById(R.id.rl_save); RelativeLayout relativeLayout5 = (RelativeLayout) inflate.findViewById(R.id.rl_suggest_name); relativeLayout2.setVisibility(0); relativeLayout3.setVisibility(8); relativeLayout4.setVisibility(0); relativeLayout5.setVisibility(0); com.rey.material.widget.TextView textView = (com.rey.material.widget.TextView) inflate.findViewById(R.id.tv_suggest_name); textView.setTypeface(this.f7543c0); com.rey.material.widget.TextView textView2 = (com.rey.material.widget.TextView) inflate.findViewById(R.id.tv_report); textView2.setTypeface(this.f7543c0); com.rey.material.widget.TextView textView3 = (com.rey.material.widget.TextView) inflate.findViewById(R.id.tv_copy); textView3.setTypeface(this.f7543c0); com.rey.material.widget.TextView textView4 = (com.rey.material.widget.TextView) inflate.findViewById(R.id.tv_save_contact); textView4.setTypeface(this.f7543c0); com.rey.material.widget.TextView textView5 = (com.rey.material.widget.TextView) inflate.findViewById(R.id.tv_delete_contact); textView5.setTypeface(this.f7543c0); textView3.setOnClickListener(this); textView4.setOnClickListener(this); textView2.setOnClickListener(this); textView5.setOnClickListener(this); textView.setOnClickListener(this); this.X = new PopupWindow(inflate); this.X.setWidth(getWindowManager().getDefaultDisplay().getWidth() / 2); this.X.setHeight(-2); this.X.setFocusable(true); this.X.setAnimationStyle(R.style.pop_style); this.X.setBackgroundDrawable(new ColorDrawable(0)); } private void e1() { this.B0 = (ImageView) findViewById(R.id.im_call); this.C0 = (ImageView) findViewById(R.id.im_sms); this.f7560t0 = y3.k1.b(this, R.attr.attr_xin_icon_1, R.drawable.xin_icon_1); int b10 = y3.k1.b(this, R.attr.attr_xin_icon_2, R.drawable.xin_icon_2); int b11 = y3.k1.b(this, R.attr.attr_xin_icon_3, R.drawable.xin_icon_3); int b12 = y3.k1.b(this, R.attr.attr_xin_icon_4, R.drawable.xin_icon_4); int b13 = y3.k1.b(this, R.attr.attr_xin_icon_5, R.drawable.xin_icon_5); int b14 = y3.k1.b(this, R.attr.attr_xin_icon_6, R.drawable.xin_icon_6); int b15 = y3.k1.b(this, R.attr.attr_xin_icon_7, R.drawable.xin_icon_7); int b16 = y3.k1.b(this, R.attr.attr_xin_icon_8, R.drawable.xin_icon_8); int b17 = y3.k1.b(this, R.attr.attr_xin_icon_9, R.drawable.xin_icon_9); HashMap<String, Integer> hashMap = new HashMap<>(); this.f7561u0 = hashMap; hashMap.put("0", Integer.valueOf(this.f7560t0)); this.f7561u0.put("1", Integer.valueOf(this.f7560t0)); this.f7561u0.put("2", Integer.valueOf(b10)); this.f7561u0.put("3", Integer.valueOf(b11)); this.f7561u0.put("4", Integer.valueOf(b12)); this.f7561u0.put("5", Integer.valueOf(b13)); this.f7561u0.put("6", Integer.valueOf(b14)); this.f7561u0.put("7", Integer.valueOf(b15)); this.f7561u0.put("8", Integer.valueOf(b16)); this.f7561u0.put("9", Integer.valueOf(b17)); FrameLayout frameLayout = (FrameLayout) findViewById(R.id.icon_suggest_fl); AnimationUtils.loadAnimation(getApplicationContext(), R.anim.iv_scale).setInterpolator(new LinearInterpolator()); this.f7552l0 = y3.k1.a(this, R.attr.spam_color_title, R.color.spam); this.f7553m0 = y3.k1.a(this, R.attr.colorPrimary, R.color.colorPrimary); this.f7554n0 = y3.k1.a(this, R.attr.color_report_spam, R.color.spam); this.I0 = y3.k1.b(getApplicationContext(), R.attr.attr_nb, R.drawable.nb_normal); this.G0 = y3.k1.b(getApplicationContext(), R.attr.contract_icon_1, R.drawable.contract_icon_1); this.H0 = y3.k1.b(getApplicationContext(), R.attr.contract_icon_2, R.drawable.contract_icon_2); this.f7553m0 = y3.k1.a(getApplicationContext(), R.attr.colorPrimary, R.color.colorPrimary); this.F0 = y3.k1.b(getApplicationContext(), R.attr.attr_block, R.drawable.nbs_normal); this.D0 = y3.k1.b(getApplicationContext(), R.attr.attr_red_call, R.drawable.red_call); this.E0 = y3.k1.b(getApplicationContext(), R.attr.attr_red_sms, R.drawable.red_sms); this.f7552l0 = y3.k1.a(getApplicationContext(), R.attr.spam_color_title, R.color.spam); this.A0 = y3.k1.b(getApplicationContext(), R.attr.touxiang_red, R.drawable.srao_normal); this.f7541a0 = (RelativeLayout) findViewById(R.id.rl_bg); this.f7542b0 = (LinearLayout) findViewById(R.id.f6853l1); LImageButton lImageButton = (LImageButton) findViewById(R.id.lb_contact_back); this.O = (LImageButton) findViewById(R.id.lb_contact_more); this.P = (LImageButton) findViewById(R.id.lb_contact_edit); this.Q = (ImageView) findViewById(R.id.ic_contact_icon); FrameLayout frameLayout2 = (FrameLayout) findViewById(R.id.btn_call); FrameLayout frameLayout3 = (FrameLayout) findViewById(R.id.see_history); FrameLayout frameLayout4 = (FrameLayout) findViewById(R.id.icon_l1); this.f7555o0 = (FrameLayout) findViewById(R.id.icon_l2); FrameLayout frameLayout5 = (FrameLayout) findViewById(R.id.icon_l4); this.f7556p0 = (LImageButton) findViewById(R.id.btn_contact_sms); this.f7557q0 = (LImageButton) findViewById(R.id.btn_whatsapp); TextView textView = (TextView) findViewById(R.id.btn_see_history); this.f7547g0 = (ImageView) findViewById(R.id.im_block); frameLayout.setOnClickListener(this); lImageButton.setOnClickListener(this); this.O.setOnClickListener(this); this.P.setOnClickListener(this); frameLayout2.setOnClickListener(this); this.f7556p0.setOnClickListener(this); this.f7557q0.setOnClickListener(this); frameLayout3.setOnClickListener(this); frameLayout4.setOnClickListener(this); this.f7555o0.setOnClickListener(this); frameLayout5.setOnClickListener(this); if (r1.S(getApplicationContext()).booleanValue()) { lImageButton.setImageResource(y3.k1.b(this, R.attr.attr_ayu_seet, R.drawable.ayu_seet_black)); } this.R = (TextView) findViewById(R.id.tv_name_number); this.Y = (TextView) findViewById(R.id.tv_dian); this.S = (TextView) findViewById(R.id.tv_contact_last_time); this.T = (TextView) findViewById(R.id.tv_contact_location); this.U = (TextView) findViewById(R.id.tv_contact_number); this.V = (TextView) findViewById(R.id.tv_contact_type); this.Z = (TextView) findViewById(R.id.tv_is_block); this.f7548h0 = (FrameLayout) findViewById(R.id.flayout_detail_ad); this.f7549i0 = findViewById(R.id.rl_call_announcer); FrameLayout frameLayout6 = (FrameLayout) findViewById(R.id.btn_call_announcer); g3.a.a(new g3.b() { @Override public final void a(boolean z10) { UnknownContactActivity.this.g1(z10); } }); frameLayout6.setOnClickListener(this); this.R.setTypeface(this.f7543c0); this.Z.setTypeface(this.f7543c0); this.S.setTypeface(this.f7543c0); this.T.setTypeface(this.f7543c0); this.U.setTypeface(this.f7543c0); this.V.setTypeface(this.f7543c0); textView.setTypeface(this.f7543c0); AppBarLayout appBarLayout = (AppBarLayout) findViewById(R.id.appbarlayout); this.f7558r0 = (TextView) findViewById(R.id.tv_name_number_title); this.f7559s0 = (ConstraintLayout) findViewById(R.id.cl_tab); this.f7558r0.setTypeface(this.f7543c0); b bVar = new b(); if (appBarLayout != null) { appBarLayout.d(bVar); } } public void f1(boolean z10) { TextView textView; String y10; try { if (z10) { this.Q.setImageResource(this.A0); this.B0.setImageResource(this.D0); this.C0.setImageResource(this.E0); this.f7547g0.setImageResource(this.F0); this.f7541a0.setBackgroundColor(this.f7552l0); this.f7559s0.setBackgroundColor(this.f7552l0); this.Y.setVisibility(0); this.Z.setVisibility(0); if (this.W.r() != null && !"".equals(this.W.r())) { textView = this.V; y10 = this.W.r(); } else if (this.W.y() == null || "".equals(this.W.y())) { this.Y.setVisibility(8); Window window = getWindow(); window.addFlags(Integer.MIN_VALUE); window.setStatusBarColor(this.f7552l0); } else { textView = this.V; y10 = this.W.y(); } textView.setText(y10); Window window2 = getWindow(); window2.addFlags(Integer.MIN_VALUE); window2.setStatusBarColor(this.f7552l0); } else { this.S.setVisibility(8); this.Y.setVisibility(8); this.Z.setVisibility(8); this.f7541a0.setBackgroundColor(this.f7553m0); this.f7559s0.setBackgroundColor(this.f7553m0); this.Q.setImageResource(J0); this.f7547g0.setImageResource(this.I0); this.C0.setImageResource(this.H0); this.B0.setImageResource(this.G0); Window window3 = getWindow(); window3.addFlags(Integer.MIN_VALUE); window3.setStatusBarColor(this.f7553m0); } } catch (Exception e10) { e10.printStackTrace(); } } public void g1(boolean z10) { if (z10) { try { if (System.currentTimeMillis() - y3.c1.H() <= 259200000 || !r1.b(getApplicationContext()) || !r1.U(getApplicationContext()) || r1.W(getApplicationContext(), y3.o0.a())) { return; } this.f7549i0.setVisibility(0); y3.m.c().g("call_announcer_show"); ImageView imageView = (ImageView) findViewById(R.id.icic); TextView textView = (TextView) findViewById(R.id.tv_title); TextView textView2 = (TextView) findViewById(R.id.tv_content); textView.setTypeface(this.f7543c0); textView2.setTypeface(this.f7543c0); if (y3.o0.e() == null || "".equals(y3.o0.e())) { return; } com.bumptech.glide.b.u(getApplicationContext()).s(y3.o0.e()).w0(imageView); } catch (Exception e10) { e10.printStackTrace(); } } } public void h1(com.google.android.gms.ads.nativead.a aVar) { b1(aVar, (NativeAdView) LayoutInflater.from(this).inflate(R.layout.aad_pdt_big, (ViewGroup) null)); this.f7564x0.a(); this.f7565y0 = false; } public void i1() { if (this.f7565y0) { this.f7563w0.setVisibility(8); this.f7548h0.setVisibility(8); this.f7564x0.a(); this.f7565y0 = true; } } public void j1() { v1(); u1(); } public void k1() { v1(); u1(); } public void l1() { try { Cursor query = EZCallApplication.d().getContentResolver().query(Uri.parse("content://com.android.contacts/data/phones/filter/" + this.W.o()), null, null, null, null); if (query != null && query.getCount() > 0) { query.moveToFirst(); int columnIndex = query.getColumnIndex("contact_id"); if (columnIndex != -1) { this.f7546f0 = query.getInt(columnIndex); } } runOnUiThread(new Runnable() { @Override public final void run() { UnknownContactActivity.this.p1(); } }); } catch (Exception e10) { e10.printStackTrace(); } } public void m1(boolean z10) { if (z10) { y1((this.W.F() == null || "".equals(this.W.F())) ? this.W.s() : this.W.F()); } else { Toast.makeText(getApplicationContext(), getResources().getString(R.string.reported), 0).show(); } } public void n1(boolean z10) { if (z10) { y1((this.W.F() == null || "".equals(this.W.F())) ? this.W.s() : this.W.F()); } else { Toast.makeText(getApplicationContext(), getResources().getString(R.string.reported), 0).show(); } } public void o1(boolean z10) { if (!z10) { Toast.makeText(getApplicationContext(), getResources().getString(R.string.reported), 0).show(); return; } Intent intent = new Intent(this, (Class<?>) ReportContactActivity.class); intent.putExtra("report_number", this.W.o()); String str = ""; if (this.W.g() != null && !"".equals(this.W.g())) { str = this.W.g(); } else if (this.W.j() != null && !"".equals(this.W.j())) { str = this.W.j(); } intent.putExtra("format_number", str); startActivityForResult(intent, 369); overridePendingTransition(R.anim.in_to_down, 0); } public void p1() { try { startActivityForResult(new Intent("android.intent.action.EDIT", Uri.parse("content://com.android.contacts/contacts/" + this.f7546f0)), 200); } catch (Exception e10) { e10.printStackTrace(); } } public void q1(boolean z10) { TextView textView; String y10; if (z10) { this.Y.setVisibility(0); this.Z.setVisibility(0); if (this.W.r() != null && !"".equals(this.W.r())) { textView = this.V; y10 = this.W.r(); } else if (this.W.y() == null || "".equals(this.W.y())) { this.Y.setVisibility(8); return; } else { textView = this.V; y10 = this.W.y(); } textView.setText(y10); } } public void r1(boolean z10) { if (z10) { try { LinearLayout linearLayout = (LinearLayout) findViewById(R.id.invis1); this.f7563w0 = linearLayout; linearLayout.setVisibility(8); s1(); } catch (Exception e10) { e10.printStackTrace(); } } } private void s1() { this.f7566z0 = 0; this.f7563w0.setVisibility(0); this.f7564x0 = b4.c.a(this.f7548h0).j(R.layout.gg_big_loading_item).k(true).g(0).i(1000).h(R.color.shimmer_color).l(); a.C0109a c0109a = new a.C0109a(this, "ca-app-pub-5825926894918682/7734382574"); c0109a.c(new a.c() { @Override public final void a(com.google.android.gms.ads.nativead.a aVar) { UnknownContactActivity.this.h1(aVar); } }); c0109a.g(new a.C0263a().h(new r.a().b(true).a()).a()); com.google.android.gms.ads.a a10 = c0109a.e(new a()).a(); this.f7562v0 = a10; a10.a(new b.a().b(MediationNativeAdapter.class, new Bundle()).c()); try { new Handler().postDelayed(new Runnable() { @Override public final void run() { UnknownContactActivity.this.i1(); } }, 3000L); } catch (Exception e10) { e10.printStackTrace(); } } private void t1() { try { this.f7551k0 = new AnonymousClass4(R.style.SimpleDialogLight); h3.b.b(this.W.o(), new c()); } catch (Exception e10) { e10.printStackTrace(); } } private void u1() { try { new h(this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new Void[0]); } catch (Exception e10) { e10.printStackTrace(); } } private void v1() { try { new i(this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new Void[0]); } catch (Exception e10) { e10.printStackTrace(); } } @SuppressLint({"SetTextI18n"}) private void w1() { LImageButton lImageButton; TextView textView; String o10; TextView textView2; String o11; TextView textView3; String y10; String o12; int i10; if (this.W == null) { return; } y3.a0.a("sunny", "contact:" + this.W); if (this.W.t() != null && !"".equals(this.W.t()) && Long.parseLong(this.W.t()) > 0) { new f(EZCallApplication.d(), this.Q, Long.valueOf(Long.parseLong(this.W.t()))).execute(new Void[0]); } try { o12 = this.W.o(); } catch (Exception e10) { e10.printStackTrace(); } if (o12 == null || "".equals(o12) || o12.length() <= 0) { i10 = this.f7560t0; } else { Integer num = this.f7561u0.get(String.valueOf(o12.charAt(o12.length() - 1))); if (num != null) { i10 = num.intValue(); } if (this.W.K() != null || "".equals(this.W.K()) || this.W.v() == null || "".equals(this.W.v())) { this.S.setVisibility(8); this.Y.setVisibility(8); this.Z.setVisibility(8); this.I0 = y3.k1.b(getApplicationContext(), R.attr.attr_nb, R.drawable.nb_normal); this.G0 = y3.k1.b(getApplicationContext(), R.attr.contract_icon_1, R.drawable.contract_icon_1); this.H0 = y3.k1.b(getApplicationContext(), R.attr.contract_icon_2, R.drawable.contract_icon_2); int a10 = y3.k1.a(getApplicationContext(), R.attr.colorPrimary, R.color.colorPrimary); this.f7553m0 = a10; this.f7541a0.setBackgroundColor(a10); this.f7559s0.setBackgroundColor(this.f7553m0); this.Q.setImageResource(J0); this.f7547g0.setImageResource(this.I0); this.C0.setImageResource(this.H0); this.B0.setImageResource(this.G0); Window window = getWindow(); window.addFlags(Integer.MIN_VALUE); window.setStatusBarColor(this.f7553m0); c1(); } else { this.F0 = y3.k1.b(getApplicationContext(), R.attr.attr_block, R.drawable.nbs_normal); this.D0 = y3.k1.b(getApplicationContext(), R.attr.attr_red_call, R.drawable.red_call); this.E0 = y3.k1.b(getApplicationContext(), R.attr.attr_red_sms, R.drawable.red_sms); this.f7552l0 = y3.k1.a(getApplicationContext(), R.attr.spam_color_title, R.color.spam); int b10 = y3.k1.b(getApplicationContext(), R.attr.touxiang_red, R.drawable.srao_normal); this.A0 = b10; this.Q.setImageResource(b10); this.B0.setImageResource(this.D0); this.C0.setImageResource(this.E0); this.f7547g0.setImageResource(this.F0); this.f7541a0.setBackgroundColor(this.f7552l0); this.f7559s0.setBackgroundColor(this.f7552l0); try { Window window2 = getWindow(); window2.addFlags(Integer.MIN_VALUE); window2.setStatusBarColor(this.f7552l0); } catch (Exception e11) { e11.printStackTrace(); } this.S.setVisibility(0); this.S.setTextColor(this.f7554n0); this.S.setText(getResources().getString(R.string.spam_report) + " " + this.W.v() + " " + getResources().getString(R.string.time_as) + " " + this.W.K()); if (this.W.V()) { this.S.setVisibility(8); this.Y.setVisibility(8); this.Z.setVisibility(8); this.I0 = y3.k1.b(getApplicationContext(), R.attr.attr_nb, R.drawable.nb_normal); this.G0 = y3.k1.b(getApplicationContext(), R.attr.contract_icon_1, R.drawable.contract_icon_1); this.H0 = y3.k1.b(getApplicationContext(), R.attr.contract_icon_2, R.drawable.contract_icon_2); int a11 = y3.k1.a(getApplicationContext(), R.attr.colorPrimary, R.color.colorPrimary); this.f7553m0 = a11; this.f7541a0.setBackgroundColor(a11); this.f7559s0.setBackgroundColor(this.f7553m0); this.Q.setImageResource(J0); this.f7547g0.setImageResource(this.I0); this.C0.setImageResource(this.H0); this.B0.setImageResource(this.G0); try { Window window3 = getWindow(); window3.addFlags(Integer.MIN_VALUE); window3.setStatusBarColor(this.f7553m0); } catch (Exception e12) { e12.printStackTrace(); } c1(); } h3.b.b(this.W.o(), new h3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.this.q1(z10); } }); } if (this.W.W()) { lImageButton = this.f7557q0; } else { this.f7555o0.setVisibility(8); this.f7557q0.setVisibility(0); lImageButton = this.f7556p0; } lImageButton.setVisibility(8); if (this.W.n() == null && !"".equals(this.W.n())) { this.R.setText(this.W.n()); textView = this.f7558r0; o10 = this.W.n(); } else if (this.W.w() == null && !"".equals(this.W.w())) { this.R.setText(this.W.w()); textView = this.f7558r0; o10 = this.W.w(); } else if (this.W.g() == null && !"".equals(this.W.g())) { this.R.setText(this.W.g()); textView = this.f7558r0; o10 = this.W.g(); } else if (this.W.j() == null && !"".equals(this.W.j())) { this.R.setText(this.W.j()); textView = this.f7558r0; o10 = this.W.j(); } else { if (!r1.e0(this.W.o())) { this.R.setText(R.string.unknow_call); this.f7558r0.setText(R.string.unknow_call); if (this.W.f() != null && !"".equals(this.W.f())) { this.T.setText(this.W.f()); this.T.setVisibility(0); } if (this.W.g() == null && !"".equals(this.W.g())) { textView2 = this.U; o11 = this.W.g(); } else if (this.W.j() == null && !"".equals(this.W.j())) { textView2 = this.U; o11 = this.W.j(); } else { if (!r1.e0(this.W.o())) { this.U.setText(R.string.unknow_call); if (this.W.r() == null && !"".equals(this.W.r())) { textView3 = this.V; y10 = this.W.r(); } else { if (this.W.y() != null || "".equals(this.W.y())) { return; } textView3 = this.V; y10 = this.W.y(); } textView3.setText(y10); return; } textView2 = this.U; o11 = this.W.o(); } textView2.setText(o11); if (this.W.r() == null) { } if (this.W.y() != null) { return; } else { return; } } this.R.setText(this.W.o()); textView = this.f7558r0; o10 = this.W.o(); } textView.setText(o10); if (this.W.f() != null) { this.T.setText(this.W.f()); this.T.setVisibility(0); } if (this.W.g() == null) { } if (this.W.j() == null) { } if (!r1.e0(this.W.o())) { } } J0 = i10; if (this.W.K() != null) { } this.S.setVisibility(8); this.Y.setVisibility(8); this.Z.setVisibility(8); this.I0 = y3.k1.b(getApplicationContext(), R.attr.attr_nb, R.drawable.nb_normal); this.G0 = y3.k1.b(getApplicationContext(), R.attr.contract_icon_1, R.drawable.contract_icon_1); this.H0 = y3.k1.b(getApplicationContext(), R.attr.contract_icon_2, R.drawable.contract_icon_2); int a102 = y3.k1.a(getApplicationContext(), R.attr.colorPrimary, R.color.colorPrimary); this.f7553m0 = a102; this.f7541a0.setBackgroundColor(a102); this.f7559s0.setBackgroundColor(this.f7553m0); this.Q.setImageResource(J0); this.f7547g0.setImageResource(this.I0); this.C0.setImageResource(this.H0); this.B0.setImageResource(this.G0); Window window4 = getWindow(); window4.addFlags(Integer.MIN_VALUE); window4.setStatusBarColor(this.f7553m0); c1(); if (this.W.W()) { } lImageButton.setVisibility(8); if (this.W.n() == null) { } if (this.W.w() == null) { } if (this.W.g() == null) { } if (this.W.j() == null) { } if (!r1.e0(this.W.o())) { } } private void x1() { g3.a.a(new g3.b() { @Override public final void a(boolean z10) { UnknownContactActivity.this.r1(z10); } }); } private void y1(String str) { Intent intent = new Intent(this, (Class<?>) SuggestNameActivity.class); intent.putExtra(EZBlackList.NUMBER, this.W.o()); intent.putExtra("suggest_number", str); intent.putExtra("old_tel_number", this.W.s()); intent.putExtra("t_p", this.W.E()); startActivityForResult(intent, 248); overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out); } @Override public void onActivityResult(int i10, int i11, Intent intent) { String stringExtra; String stringExtra2; super.onActivityResult(i10, i11, intent); if (i10 == 200) { new Handler().postDelayed(new Runnable() { @Override public final void run() { UnknownContactActivity.this.j1(); } }, 500L); } if (i10 == 100) { new Handler().postDelayed(new Runnable() { @Override public final void run() { UnknownContactActivity.this.k1(); } }, 500L); } if (i10 == 369 && i11 == 963 && intent != null && (stringExtra2 = intent.getStringExtra("typelabel")) != null && !"".equals(stringExtra2) && this.W.v() != null && !"".equals(this.W.v())) { String.valueOf(Integer.parseInt(this.W.v()) + 1); } if (i10 != 248 || i11 != 842 || intent == null || (stringExtra = intent.getStringExtra(EZBlackList.NAME)) == null || "".equals(stringExtra)) { return; } this.R.setText(stringExtra); this.f7558r0.setText(stringExtra); Toast.makeText(getApplicationContext(), getResources().getString(R.string.report_ok), 0).show(); } @Override @SuppressLint({"NonConstantResourceId", "RtlHardcoded"}) public void onClick(View view) { Context applicationContext; String o10; Context applicationContext2; String o11; PopupWindow popupWindow; LImageButton lImageButton; int a10; int i10; Toast makeText; try { switch (view.getId()) { case R.id.btn_call: if (y3.j1.h(getApplicationContext())) { int t10 = y3.c1.t(); if (t10 != -1) { y3.j1.b(this, t10, this.W.o()); return; } else if (Build.VERSION.SDK_INT >= 22) { y3.j1.r(this, this.W.o()); return; } else { applicationContext = getApplicationContext(); o10 = this.W.o(); } } else { applicationContext = getApplicationContext(); o10 = this.W.o(); } y3.t0.a(applicationContext, o10); return; case R.id.btn_call_announcer: this.f7549i0.setVisibility(8); y3.m.c().g("call_announcer_click"); y3.c1.V0(System.currentTimeMillis()); r1.q0(getApplicationContext(), y3.o0.a(), "england_call"); return; case R.id.btn_contact_sms: if (!r1.e0(this.W.o())) { Intent intent = new Intent(this, (Class<?>) MessageBoxListActivity.class); intent.putExtra("SmsNumber", this.W.o()); startActivity(intent); overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out); return; } Toast.makeText(this, R.string.unknow_call, 0).show(); return; case R.id.btn_whatsapp: s1.d(this, this.W.o()); return; case R.id.icon_l1: if (y3.j1.h(getApplicationContext())) { int t11 = y3.c1.t(); if (t11 != -1) { y3.j1.b(this, t11, this.W.o()); return; } else if (Build.VERSION.SDK_INT >= 22) { y3.j1.r(this, this.W.o()); return; } else { applicationContext2 = getApplicationContext(); o11 = this.W.o(); } } else { applicationContext2 = getApplicationContext(); o11 = this.W.o(); } y3.t0.a(applicationContext2, o11); return; case R.id.icon_l2: if (!r1.e0(this.W.o())) { Intent intent2 = new Intent(this, (Class<?>) MessageBoxListActivity.class); intent2.putExtra("SmsNumber", this.W.o()); startActivity(intent2); overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out); return; } Toast.makeText(this, R.string.unknow_call, 0).show(); return; case R.id.icon_l4: y3.m.c().g("unkonwn_content_block_click"); if (!r1.e0(this.W.o())) { t1(); return; } Toast.makeText(this, R.string.unknow_call, 0).show(); return; case R.id.icon_suggest_fl: if (r1.e0(this.W.o())) { Toast.makeText(this, getResources().getString(R.string.unknow_call), 0).show(); return; } else { r3.b.b(this.W.o(), new r3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.this.m1(z10); } }); return; } case R.id.lb_contact_back: if (this.f7545e0) { s0.a.b(getApplicationContext()).d(new Intent("com.callerid.block.RELOAD_DATA_VEST")); } finish(); overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out); return; case R.id.lb_contact_edit: y3.n0.a().f34776a.execute(new Runnable() { @Override public final void run() { UnknownContactActivity.this.l1(); } }); return; case R.id.lb_contact_more: if (r1.S(getApplicationContext()).booleanValue()) { popupWindow = this.X; lImageButton = this.O; a10 = y3.g.a(getApplicationContext(), 14.0f) + 25; i10 = 51; } else { popupWindow = this.X; lImageButton = this.O; a10 = y3.g.a(getApplicationContext(), 14.0f) + 25; i10 = 53; } popupWindow.showAtLocation(lImageButton, i10, 5, a10); return; case R.id.see_history: CallLogBean callLogBean = this.W; if (callLogBean == null || callLogBean.o() == null || "".equals(this.W.o())) { return; } Intent intent3 = new Intent(this, (Class<?>) CallLogActivity.class); intent3.putExtra("call_log_number", this.W.o()); startActivity(intent3); overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out); return; case R.id.tv_copy: this.X.dismiss(); if (!r1.e0(this.W.o())) { ClipboardManager clipboardManager = (ClipboardManager) getSystemService("clipboard"); if (clipboardManager != null) { clipboardManager.setPrimaryClip(ClipData.newPlainText(null, this.W.o())); Toast.makeText(this, getResources().getString(R.string.copy_ok), 1).show(); return; } return; } Toast.makeText(this, R.string.unknow_call, 0).show(); return; case R.id.tv_delete_contact: this.X.dismiss(); SimpleDialog.Builder builder = new SimpleDialog.Builder(R.style.SimpleDialogLight) { @Override public void a(com.rey.material.app.a aVar) { super.a(aVar); } @Override public void f(com.rey.material.app.a aVar) { super.f(aVar); try { new g(UnknownContactActivity.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new Void[0]); } catch (Exception e10) { e10.printStackTrace(); } } @Override protected void j(Dialog dialog) { dialog.K(-1, -2); dialog.r0(UnknownContactActivity.this.f7543c0); r1.m0(dialog, UnknownContactActivity.this.getResources().getColor(R.color.colorAccent)); } }; builder.m(getResources().getString(R.string.delete_dialog)).h(getResources().getString(R.string.cancel_dialog)); builder.o(getResources().getString(R.string.delete_contact_aio)); builder.r(this.f7543c0); com.rey.material.app.a m22 = com.rey.material.app.a.m2(builder); androidx.fragment.app.q l10 = R().l(); l10.d(m22, getClass().getSimpleName()); l10.j(); return; case R.id.tv_report: y3.m.c().g("unkonwn_content_report_click"); try { } catch (Exception e10) { e = e10; e.printStackTrace(); this.X.dismiss(); return; } if (!r1.Z(getApplicationContext())) { makeText = Toast.makeText(getApplicationContext(), R.string.search_desc, 0); } else { if (this.W.o() != null && !"".equals(this.W.o()) && !r1.e0(this.W.o())) { r3.b.a(this.W.o(), new r3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.this.o1(z10); } }); this.X.dismiss(); return; } makeText = Toast.makeText(this, getResources().getString(R.string.unknow_call), 0); } makeText.show(); this.X.dismiss(); return; case R.id.tv_save_contact: this.X.dismiss(); if (!r1.e0(this.W.o())) { try { Intent intent4 = new Intent("android.intent.action.INSERT_OR_EDIT"); intent4.setType("vnd.android.cursor.item/contact"); intent4.putExtra("phone", this.W.o()); if (this.W.w() != null && !"".equals(this.W.w())) { intent4.putExtra(EZBlackList.NAME, this.W.w()); } startActivityForResult(intent4, 100); return; } catch (Exception e11) { e11.printStackTrace(); try { Intent intent5 = new Intent("android.intent.action.INSERT"); intent5.setType("vnd.android.cursor.dir/person"); intent5.setType("vnd.android.cursor.dir/contact"); intent5.setType("vnd.android.cursor.dir/raw_contact"); intent5.putExtra("phone_type", 2); intent5.putExtra("phone", this.W.o()); if (this.W.w() != null && !"".equals(this.W.w())) { intent5.putExtra(EZBlackList.NAME, this.W.w()); } startActivityForResult(intent5, 100); return; } catch (Exception e12) { e12.getMessage(); return; } } } Toast.makeText(this, R.string.unknow_call, 0).show(); return; case R.id.tv_suggest_name: try { if (r1.e0(this.W.o())) { Toast.makeText(this, getResources().getString(R.string.unknow_call), 0).show(); } else { r3.b.b(this.W.o(), new r3.a() { @Override public final void a(boolean z10) { UnknownContactActivity.this.n1(z10); } }); } } catch (Exception e13) { e = e13; e.printStackTrace(); this.X.dismiss(); return; } this.X.dismiss(); return; default: return; } } catch (Exception e14) { e14.printStackTrace(); } } @Override public void onCreate(Bundle bundle) { super.onCreate(bundle); this.f7543c0 = y3.n1.c(); y3.m.c().g("enter_number_detail_page"); y3.a0.a("testenter", "11号码详情页展示次数"); Intent intent = getIntent(); if (intent != null) { CallLogBean callLogBean = (CallLogBean) intent.getParcelableExtra("contact_tony"); this.W = callLogBean; if (callLogBean != null && callLogBean.K() != null && !"".equals(this.W.K()) && this.W.v() != null && !this.W.v().equals("")) { setTheme((this.W.n() == null || "".equals(this.W.n())) ? R.style.AppTheme1 : R.style.NormalTheme); } } setContentView(R.layout.contract_unknow); if (r1.S(getApplicationContext()).booleanValue()) { getWindow().getDecorView().setLayoutDirection(1); } e1(); w1(); d1(); this.f7550j0 = new e(); s0.a.b(this).c(this.f7550j0, new IntentFilter("com.callerid.block.CLOSE_AD_VEST")); } @Override public void onDestroy() { super.onDestroy(); if (this.f7550j0 != null) { s0.a.b(getApplicationContext()).e(this.f7550j0); } } @Override public boolean onKeyDown(int i10, KeyEvent keyEvent) { if (i10 != 4) { return super.onKeyDown(i10, keyEvent); } if (this.f7545e0) { s0.a.b(getApplicationContext()).d(new Intent("com.callerid.block.RELOAD_DATA_VEST")); } finish(); overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out); return true; } @Override public void onPause() { super.onPause(); } @Override public void onResume() { super.onResume(); x1(); Looper.myQueue().addIdleHandler(new d()); } }