正在查看: Housing v14.7.8 应用的 DialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 DialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.ringlerr.callplus;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
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.EditText;
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 DialogActivity extends androidx.appcompat.app.i implements TraceFieldInterface {
private static final int PERMISSION_REQUEST_CALL_PHONE = 124;
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_PROFILE_CLICK = 7;
public static int TYPE_REVERT = 5;
public static int TYPE_SEND_MESSAGE = 3;
public static String additional_data = "";
public static a appOpenListener = null;
public static String background = "#FFFFFF";
public static b callListener = null;
static TextView caller_type_text = null;
public static String cant_talk_now_text = "Can't talk right now";
public static String class_name = "MainActivity.class";
static Dialog dialog = null;
public static Activity dialogActivity = null;
static View dialogView = null;
public static String key = "1234";
public static int layout_call = 0;
public static int layout_text = 0;
public static int logo = 0;
public static e mListener = null;
public static c messageClickListener = null;
public static String message_text_color = "#FF37474F";
public static String name_text_color = "#FF37474F";
public static String package_name = "com.indiamart.m";
public static String phone_text_color = "#FF37474F";
public static d profileClickListener = null;
public static String[] revert_strings = new String[0];
public static String title = "";
public static String title_text_color = "#FFFFFF";
public static String type;
public Trace _nr_trace;
androidx.appcompat.app.f alertList;
String from;
String m_phone;
String message_id;
String name;
LinearLayout profile_section;
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"};
String recever_name = "";
String business_name = "";
public interface a {
}
public interface b {
}
public interface c {
}
public interface d {
}
public interface e {
}
public static void n(DialogActivity dialogActivity2, String str, String str2) {
dialogActivity2.getClass();
AsyncTaskInstrumentation.execute(new i0(dialogActivity2, str, str2), new String[0]);
}
public static void o(DialogActivity dialogActivity2, String[] strArr, String str, TextView textView) {
dialogActivity2.getClass();
f.a aVar = new f.a(dialogActivity2);
View inflate = LayoutInflater.from(dialogActivity2).inflate(q1.lists, (ViewGroup) null);
aVar.setView(inflate);
androidx.appcompat.app.f create = aVar.create();
dialogActivity2.alertList = create;
create.getWindow().requestFeature(1);
dialogActivity2.alertList.getWindow().setType(2038);
dialogActivity2.alertList.setCanceledOnTouchOutside(true);
dialogActivity2.alertList.show();
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams();
Window window = dialogActivity2.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) dialogActivity2, q1.activity_listview, (Object[]) strArr);
ListView listView = (ListView) inflate.findViewById(p1.mobile_list);
listView.setAdapter((ListAdapter) arrayAdapter);
listView.setOnItemClickListener(new q(dialogActivity2, strArr, str, textView));
inflate.findViewById(p1.bt_close_list).setOnClickListener(new r(dialogActivity2));
}
public final void onBackPressed() {
finish();
}
public final void onCreate(Bundle bundle) {
TraceMachine.startTracing("DialogActivity");
try {
TraceMachine.enterMethod(this._nr_trace, "DialogActivity#onCreate", (ArrayList) null);
} catch (NoSuchFieldError unused) {
TraceMachine.enterMethod((Trace) null, "DialogActivity#onCreate", (ArrayList) null);
}
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);
dialogActivity = this;
if (Settings.canDrawOverlays(this)) {
q(getIntent());
} else {
r(getIntent());
}
TraceMachine.exitMethod();
}
public final void onNewIntent(Intent intent) {
super/*androidx.activity.h*/.onNewIntent(intent);
Dialog dialog2 = dialog;
if (dialog2 != null) {
dialog2.cancel();
dialog.dismiss();
}
if (Settings.canDrawOverlays(this)) {
q(intent);
} else {
r(intent);
}
}
public final void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
super/*androidx.fragment.app.u*/.onRequestPermissionsResult(i, strArr, iArr);
if (i == PERMISSION_REQUEST_CALL_PHONE && iArr.length > 0) {
int i2 = iArr[0];
}
}
public final void onStart() {
super.onStart();
ApplicationStateMonitor.getInstance().activityStarted();
}
public final void onStop() {
super.onStop();
ApplicationStateMonitor.getInstance().activityStopped();
}
public final void p(int i, String str) {
AsyncTaskInstrumentation.execute(new j0(this, str, i), new String[0]);
}
public final void q(Intent intent) {
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");
this.message_id = intent.getExtras().getString(Consts.MESSAGE_ID);
String string2 = intent.getExtras().getString("user_image");
AsyncTaskInstrumentation.execute(new k0(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;
TextView textView = (TextView) inflate.findViewById(p1.call_stat);
TextView textView2 = (TextView) dialogView.findViewById(p1.caller_message);
if (type.equals("revert")) {
textView.setText("Reply From");
textView2.setText("Customer's Message");
}
if (type.equals("call")) {
textView.setText("Incoming Call From");
}
aVar.setView(dialogView);
androidx.appcompat.app.f create = aVar.create();
create.getWindow().requestFeature(1);
create.getWindow().setType(2038);
create.setCanceledOnTouchOutside(false);
create.show();
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams();
Window window = create.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) dialogView.findViewById(p1.drag_layout)).setOnTouchListener(new z(this, layoutParams, window));
TextView textView3 = (TextView) dialogView.findViewById(p1.messageView);
TextView textView4 = (TextView) dialogView.findViewById(p1.my_message);
EditText editText = (EditText) dialogView.findViewById(p1.messageTypeView);
TextView textView5 = (TextView) dialogView.findViewById(p1.phone);
TextView textView6 = (TextView) dialogView.findViewById(p1.title);
ImageView imageView = (ImageView) dialogView.findViewById(p1.imageView2);
ImageView imageView2 = (ImageView) dialogView.findViewById(p1.image);
TextView textView7 = (TextView) dialogView.findViewById(p1.bt_open);
textView5.setTextColor(Color.parseColor(phone_text_color));
int i = logo;
if (i != 0) {
imageView.setImageResource(i);
}
if (!string2.equals("")) {
AsyncTaskInstrumentation.execute(new h0(this, string2, imageView2), new String[0]);
}
if (string != null) {
textView3.setText(string);
}
if (editText != null) {
editText.setSelection(editText.getText().length());
}
String str = this.business_name;
if (str != null) {
textView5.setText(str);
}
String str2 = this.name;
if (str2 != null) {
textView6.setText(str2);
}
dialogView.findViewById(p1.bt_close).setOnClickListener(new l0(this, create));
dialogView.findViewById(p1.nt_interested).setOnClickListener(new n0(this, textView4));
dialogView.findViewById(p1.bt_send).setOnClickListener(new o0(this, editText));
textView7.setOnClickListener(new p0(this));
ImageView imageView3 = (ImageView) dialogView.findViewById(p1.bt_revert);
TextView textView8 = (TextView) dialogView.findViewById(p1.bt_revert_txt);
imageView3.setOnClickListener(new q0(this, textView3, textView4));
textView8.setOnClickListener(new r0(this, textView3, textView4));
textView3.setOnClickListener(new s0(this));
((ImageView) dialogView.findViewById(p1.bt_callback)).setOnClickListener(new t0(this, textView3, textView4));
((TextView) dialogView.findViewById(p1.bt_callback_txt)).setOnClickListener(new o(this, textView3, textView4));
if (!type.equals("revert")) {
Handler handler = new Handler();
handler.postDelayed(new p(this, new boolean[]{true}, new boolean[]{false}, handler), 3000L);
}
finish();
}
public final void r(Intent intent) {
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");
this.message_id = intent.getExtras().getString(Consts.MESSAGE_ID);
String string2 = intent.getExtras().getString("user_image");
AsyncTaskInstrumentation.execute(new k0(this, this.from), new String[0]);
Dialog dialog2 = new Dialog(this);
dialog = dialog2;
dialog2.requestWindowFeature(1);
dialog.setContentView(q1.dialog_info);
TextView textView = (TextView) dialog.findViewById(p1.call_stat);
TextView textView2 = (TextView) dialog.findViewById(p1.caller_message);
if (type.equals("revert")) {
textView.setText("Reply From");
textView2.setText("Customer's Message");
}
if (type.equals("call")) {
textView.setText("Incoming Call From");
}
dialog.setCancelable(true);
dialog.setCanceledOnTouchOutside(false);
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams();
layoutParams.copyFrom(dialog.getWindow().getAttributes());
layoutParams.width = -1;
layoutParams.height = -2;
dialog.show();
dialog.getWindow().setAttributes(layoutParams);
((LinearLayout) dialog.findViewById(p1.drag_layout)).setOnTouchListener(new s(this, layoutParams));
TextView textView3 = (TextView) dialog.findViewById(p1.messageView);
TextView textView4 = (TextView) dialog.findViewById(p1.my_message);
EditText editText = (EditText) dialog.findViewById(p1.messageTypeView);
TextView textView5 = (TextView) dialog.findViewById(p1.phone);
TextView textView6 = (TextView) dialog.findViewById(p1.title);
ImageView imageView = (ImageView) dialog.findViewById(p1.imageView2);
ImageView imageView2 = (ImageView) dialog.findViewById(p1.image);
TextView textView7 = (TextView) dialog.findViewById(p1.bt_open);
textView5.setTextColor(Color.parseColor(phone_text_color));
int i = logo;
if (i != 0) {
imageView.setImageResource(i);
}
if (!string2.equals("")) {
AsyncTaskInstrumentation.execute(new h0(this, string2, imageView2), new String[0]);
}
if (string != null) {
textView3.setText(string);
}
String str = this.business_name;
if (str != null) {
textView5.setText(str);
}
String str2 = this.name;
if (str2 != null) {
textView6.setText(str2);
}
dialog.findViewById(p1.bt_close).setOnClickListener(new t(this));
dialog.findViewById(p1.nt_interested).setOnClickListener(new u(this, textView4));
dialog.findViewById(p1.bt_send).setOnClickListener(new v(this, editText));
textView7.setOnClickListener(new w(this));
ImageView imageView3 = (ImageView) dialog.findViewById(p1.bt_revert);
TextView textView8 = (TextView) dialog.findViewById(p1.bt_revert_txt);
imageView3.setOnClickListener(new y(this, imageView3, textView4));
textView8.setOnClickListener(new b0(this, imageView3, textView4));
LinearLayout linearLayout = (LinearLayout) dialog.findViewById(p1.profile_section);
this.profile_section = linearLayout;
linearLayout.setOnClickListener(new c0(this));
textView3.setOnClickListener(new d0(this));
((ImageView) dialog.findViewById(p1.bt_callback)).setOnClickListener(new e0(this));
((TextView) dialog.findViewById(p1.bt_callback_txt)).setOnClickListener(new f0(this));
if (type.equals("revert")) {
return;
}
Handler handler = new Handler();
handler.postDelayed(new g0(this, new boolean[]{true}, new boolean[]{false}, handler), 3000L);
}
}