正在查看: Housing v14.7.8 应用的 NewDialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 NewDialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.ringlerr.callplus;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.os.Handler;
import android.provider.Settings;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import androidx.appcompat.app.f;
import com.newrelic.agent.android.api.v2.TraceFieldInterface;
import com.newrelic.agent.android.background.ApplicationStateMonitor;
import com.newrelic.agent.android.instrumentation.AsyncTaskInstrumentation;
import com.newrelic.agent.android.instrumentation.Instrumented;
import com.newrelic.agent.android.tracing.Trace;
import com.newrelic.agent.android.tracing.TraceMachine;
import com.quickblox.chat.Consts;
import java.util.ArrayList;
import org.jivesoftware.smackx.privacy.packet.PrivacyItem;
@Instrumented
public class NewDialogActivity extends androidx.appcompat.app.i implements TraceFieldInterface {
public static int TYPE_APP_OPEN = 4;
public static int TYPE_CALL = 8;
public static int TYPE_CANT_TALK_NOW = 6;
public static int TYPE_CLOSED = 1;
public static int TYPE_IMPRESSION = 9;
public static int TYPE_MESSAGE_CLICK = 8;
public static int TYPE_NOT_INTERESTED = 2;
public static int TYPE_REVERT = 5;
public static int TYPE_SEND_MESSAGE = 3;
public static int TYPE_WHATSAPP = 7;
static Dialog dialog = null;
static View dialogView = null;
public static boolean hideOnRevert = false;
public static String key = "063c14fc631205f45d8dfa4982d08b568d78db4bcaeba0c55db087f2d29b6615";
public static int layout_call;
public static int layout_text;
public static int logo;
public static String message_id;
public static String type;
public Trace _nr_trace;
androidx.appcompat.app.f alert;
androidx.appcompat.app.f alertList;
String from;
String m_phone;
String name;
String recever_name = "";
String business_name = "";
String[] call_back = {"Call back between 9AM-11am.", "Call back between 11am-1PM", "Call back between 2PM-4PM", "Call back between 4PM-6PM", "Call back After 6PM", "Call back tomorrow"};
public static void n(NewDialogActivity newDialogActivity, String str, int i) {
newDialogActivity.getClass();
AsyncTaskInstrumentation.execute(new b1(newDialogActivity, str, i), new String[0]);
if (hideOnRevert) {
new Handler().postDelayed(new c1(newDialogActivity), 3000L);
}
}
public static void o(NewDialogActivity newDialogActivity, String[] strArr, String str, TextView textView, TextView textView2) {
newDialogActivity.getClass();
f.a aVar = new f.a(newDialogActivity);
View inflate = LayoutInflater.from(newDialogActivity).inflate(q1.lists, (ViewGroup) null);
aVar.setView(inflate);
androidx.appcompat.app.f create = aVar.create();
newDialogActivity.alertList = create;
create.getWindow().requestFeature(1);
newDialogActivity.alertList.getWindow().setType(2038);
newDialogActivity.alertList.setCanceledOnTouchOutside(true);
newDialogActivity.alertList.show();
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams();
Window window = newDialogActivity.alertList.getWindow();
window.addFlags(2097152);
window.addFlags(524288);
window.addFlags(128);
window.addFlags(4194304);
window.addFlags(32);
window.clearFlags(2);
window.setBackgroundDrawable(new ColorDrawable(0));
window.setGravity(17);
layoutParams.copyFrom(window.getAttributes());
layoutParams.width = 550;
layoutParams.height = -2;
window.setAttributes(layoutParams);
ArrayAdapter arrayAdapter = new ArrayAdapter((Context) newDialogActivity, q1.activity_listview, (Object[]) strArr);
ListView listView = (ListView) inflate.findViewById(p1.mobile_list);
listView.setAdapter((ListAdapter) arrayAdapter);
listView.setOnItemClickListener(new y0(newDialogActivity, strArr, str, textView2, textView));
inflate.findViewById(p1.bt_close_list).setOnClickListener(new z0(newDialogActivity));
}
public final void onCreate(Bundle bundle) {
Object obj;
TraceMachine.startTracing("NewDialogActivity");
try {
TraceMachine.enterMethod(this._nr_trace, "NewDialogActivity#onCreate", (ArrayList) null);
} catch (NoSuchFieldError unused) {
while (true) {
try {
TraceMachine.enterMethod((Trace) null, "NewDialogActivity#onCreate", (ArrayList) null);
break;
} catch (NoSuchFieldError unused2) {
}
}
}
super/*androidx.fragment.app.u*/.onCreate(bundle);
getWindow().setType(2003);
getWindow().addFlags(2097152);
getWindow().addFlags(524288);
getWindow().addFlags(128);
getWindow().addFlags(4194304);
getWindow().setBackgroundDrawable(new ColorDrawable(0));
getWindow().addFlags(256);
getWindow().setLayout(-1, -1);
if (Settings.canDrawOverlays(this)) {
Intent intent = getIntent();
String string = intent.getExtras().getString("message");
this.from = intent.getExtras().getString(PrivacyItem.SUBSCRIPTION_FROM);
type = intent.getExtras().getString("type");
this.name = intent.getExtras().getString("caller_name");
this.m_phone = intent.getExtras().getString(PrivacyItem.SUBSCRIPTION_TO);
this.recever_name = intent.getExtras().getString("recever_name");
this.business_name = intent.getExtras().getString("business_name");
message_id = intent.getExtras().getString(Consts.MESSAGE_ID);
intent.getExtras().getString("user_image");
String string2 = intent.getExtras().getString("cvc");
if (message_id != null) {
AsyncTaskInstrumentation.execute(new d1(this, this.from), new String[0]);
}
f.a aVar = new f.a(this);
View inflate = LayoutInflater.from(this).inflate(q1.dialog_info, (ViewGroup) null);
dialogView = inflate;
aVar.setView(inflate);
androidx.appcompat.app.f create = aVar.create();
this.alert = create;
create.getWindow().requestFeature(1);
this.alert.getWindow().setType(2038);
this.alert.setCanceledOnTouchOutside(false);
this.alert.show();
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams();
Window window = this.alert.getWindow();
window.addFlags(2097152);
window.addFlags(524288);
window.addFlags(128);
window.addFlags(4194304);
window.addFlags(32);
window.clearFlags(2);
window.setBackgroundDrawable(new ColorDrawable(0));
window.setGravity(17);
layoutParams.copyFrom(window.getAttributes());
layoutParams.width = -2;
layoutParams.height = -2;
LinearLayout linearLayout = (LinearLayout) dialogView.findViewById(p1.drag_layout);
TextView textView = (TextView) dialogView.findViewById(p1.messageView);
TextView textView2 = (TextView) dialogView.findViewById(p1.messageViewRevert);
TextView textView3 = (TextView) dialogView.findViewById(p1.my_message);
TextView textView4 = (TextView) dialogView.findViewById(p1.bt_open);
TextView textView5 = (TextView) dialogView.findViewById(p1.title);
TextView textView6 = (TextView) dialogView.findViewById(p1.caller_message);
TextView textView7 = (TextView) dialogView.findViewById(p1.cvc);
LinearLayout linearLayout2 = (LinearLayout) dialogView.findViewById(p1.cta_layout);
if (type.equals("revert")) {
obj = "revert";
textView6.setText("Customer's Message");
linearLayout2.setVisibility(8);
} else {
obj = "revert";
}
textView5.setText(this.name);
if (string != null) {
textView.setText(string);
}
if (string2 != null && !string2.equals("")) {
textView7.setText("CV Code : ".concat(string2));
}
textView4.setText(this.from);
linearLayout.setOnTouchListener(new e1(this, layoutParams, window));
((ImageView) dialogView.findViewById(p1.nt_interested)).setOnClickListener(new f1(this));
((ImageView) dialogView.findViewById(p1.bt_revert)).setOnClickListener(new g1(this));
((ImageView) dialogView.findViewById(p1.nt_interested)).setOnClickListener(new h1(this));
((ImageView) dialogView.findViewById(p1.bt_send)).setOnClickListener(new i1(this, textView2, textView3));
dialogView.findViewById(p1.bt_close).setOnClickListener(new j1(this));
if (type.equals(obj)) {
TextView textView8 = (TextView) dialogView.findViewById(p1.call_stat);
TextView textView9 = (TextView) dialogView.findViewById(p1.phone);
textView8.setText("Message From " + this.name);
textView9.setVisibility(8);
} else {
Handler handler = new Handler();
handler.postDelayed(new k1(this, new boolean[]{true}, new boolean[]{false}, handler), 3000L);
}
} else {
Intent intent2 = getIntent();
String string3 = intent2.getExtras().getString("message");
this.from = intent2.getExtras().getString(PrivacyItem.SUBSCRIPTION_FROM);
type = intent2.getExtras().getString("type");
this.name = intent2.getExtras().getString("caller_name");
this.m_phone = intent2.getExtras().getString(PrivacyItem.SUBSCRIPTION_TO);
this.recever_name = intent2.getExtras().getString("recever_name");
this.business_name = intent2.getExtras().getString("business_name");
message_id = intent2.getExtras().getString(Consts.MESSAGE_ID);
intent2.getExtras().getString("user_image");
if (message_id != null) {
AsyncTaskInstrumentation.execute(new d1(this, this.from), new String[0]);
}
Dialog dialog2 = new Dialog(this);
dialog = dialog2;
dialog2.requestWindowFeature(1);
dialog.setContentView(q1.dialog_info);
ImageView imageView = (ImageView) dialog.findViewById(p1.nt_interested);
TextView textView10 = (TextView) dialog.findViewById(p1.messageView);
TextView textView11 = (TextView) dialog.findViewById(p1.messageViewRevert);
TextView textView12 = (TextView) dialog.findViewById(p1.my_message);
TextView textView13 = (TextView) dialog.findViewById(p1.bt_open);
if (string3 != null) {
textView10.setText(string3);
}
textView13.setText(this.from);
imageView.setOnClickListener(new l1(this, textView12, textView11));
((ImageView) dialog.findViewById(p1.bt_revert)).setOnClickListener(new m1(this));
((ImageView) dialog.findViewById(p1.bt_callback)).setOnClickListener(new u0(this));
((ImageView) dialog.findViewById(p1.bt_send)).setOnClickListener(new v0(this, textView11, textView12));
dialog.findViewById(p1.bt_close).setOnClickListener(new w0(this));
if (!type.equals("revert_main")) {
Handler handler2 = new Handler();
handler2.postDelayed(new x0(this, new boolean[]{true}, new boolean[]{false}, handler2), 3000L);
}
}
TraceMachine.exitMethod();
}
public final void onStart() {
super.onStart();
ApplicationStateMonitor.getInstance().activityStarted();
}
public final void onStop() {
super.onStop();
ApplicationStateMonitor.getInstance().activityStopped();
}
}