正在查看: Housing v14.7.8 应用的 CallBackDialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 CallBackDialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.ringlerr.callplus;
import android.app.Dialog;
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.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
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 CallBackDialogActivity 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_PROFILE_CLICK = 7;
public static int TYPE_REVERT = 5;
public static int TYPE_SEND_MESSAGE = 3;
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 type;
public Trace _nr_trace;
androidx.appcompat.app.f alert;
androidx.appcompat.app.f alertList;
String from;
String m_phone;
String message_id;
String name;
String recever_name = "";
String business_name = "";
String[] call_back = {"Call back between 11AM-12Noon.", "Call back between 12Noon-1PM", "Call back between 1PM-2PM", "Call back between 2PM-3PM", "Call back between 3PM-4PM", "Call back between 4PM-5PM", "Call back After 6PM"};
public final void onCreate(Bundle bundle) {
TraceMachine.startTracing("CallBackDialogActivity");
try {
TraceMachine.enterMethod(this._nr_trace, "CallBackDialogActivity#onCreate", (ArrayList) null);
} catch (NoSuchFieldError unused) {
TraceMachine.enterMethod((Trace) null, "CallBackDialogActivity#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);
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");
this.message_id = intent.getExtras().getString(Consts.MESSAGE_ID);
intent.getExtras().getString("user_image");
String string2 = intent.getExtras().getString("cvc");
AsyncTaskInstrumentation.execute(new b(this, this.from), new String[0]);
f.a aVar = new f.a(this);
View inflate = LayoutInflater.from(this).inflate(q1.dialog_info_callback, (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);
EditText editText = (EditText) dialogView.findViewById(p1.messageTypeView);
TextView textView2 = (TextView) dialogView.findViewById(p1.bt_open);
TextView textView3 = (TextView) dialogView.findViewById(p1.title);
TextView textView4 = (TextView) dialogView.findViewById(p1.caller_message);
TextView textView5 = (TextView) dialogView.findViewById(p1.cvc);
LinearLayout linearLayout2 = (LinearLayout) dialogView.findViewById(p1.cta_layout);
TextView textView6 = (TextView) dialogView.findViewById(p1.call_stat);
if (type.equals("reply")) {
textView4.setText(this.name + "'s Message");
linearLayout2.setVisibility(8);
} else {
textView6.setText("Incoming Call From " + this.name);
linearLayout2.setVisibility(0);
}
textView3.setText(this.name);
if (string != null) {
textView.setText(string);
}
if (string2 != null && !string2.equals("")) {
textView5.setText("CV Code : ".concat(string2));
}
textView2.setText(this.from);
linearLayout.setOnTouchListener(new c(this, layoutParams, window));
((ImageView) dialogView.findViewById(p1.bt_send)).setOnClickListener(new d(this, editText));
((ImageView) dialogView.findViewById(p1.bt_callback)).setOnClickListener(new e(this));
dialogView.findViewById(p1.bt_close).setOnClickListener(new f(this));
if (type.equals("revert")) {
((TextView) dialogView.findViewById(p1.phone)).setVisibility(8);
} else {
Handler handler = new Handler();
handler.postDelayed(new g(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");
this.message_id = intent2.getExtras().getString(Consts.MESSAGE_ID);
intent2.getExtras().getString("user_image");
AsyncTaskInstrumentation.execute(new b(this, this.from), new String[0]);
Dialog dialog2 = new Dialog(this);
dialog = dialog2;
dialog2.requestWindowFeature(1);
dialog.setContentView(q1.dialog_info_callback);
TextView textView7 = (TextView) dialog.findViewById(p1.messageView);
EditText editText2 = (EditText) dialog.findViewById(p1.messageTypeView);
TextView textView8 = (TextView) dialog.findViewById(p1.bt_open);
TextView textView9 = (TextView) dialog.findViewById(p1.caller_message);
TextView textView10 = (TextView) dialog.findViewById(p1.call_stat);
LinearLayout linearLayout3 = (LinearLayout) dialog.findViewById(p1.cta_layout);
if (type.equals("reply")) {
textView9.setText(this.name + "'s Message");
linearLayout3.setVisibility(8);
} else {
textView10.setText("Incoming Call From " + this.name);
linearLayout3.setVisibility(0);
}
if (string3 != null) {
textView7.setText(string3);
}
textView8.setText(this.from);
((ImageView) dialog.findViewById(p1.bt_send)).setOnClickListener(new h(this, editText2));
((ImageView) dialog.findViewById(p1.bt_callback)).setOnClickListener(new i(this));
dialog.findViewById(p1.bt_close).setOnClickListener(new j(this));
if (!type.equals("revert_main")) {
Handler handler2 = new Handler();
handler2.postDelayed(new k(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();
}
}