正在查看: Minits v4.9.3.32 应用的 FullScreenGoogleMapActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Minits v4.9.3.32 应用的 FullScreenGoogleMapActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.xone.maps.support;
import C9.a;
import android.R;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import androidx.fragment.app.j;
import bb.AbstractC0515a;
import com.xone.android.utils.Utils;
import com.xone.maps.support.FullScreenGoogleMapActivity;
import com.xone.maps.ui.XoneMapsViewEmbed;
import eb.AbstractC0665a;
import fb.AbstractC0698k;
import ha.q;
import hc.D;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import org.mozilla.javascript.JavaScriptException;
import ra.c;
import ra.e;
import ra.f;
import ua.F;
import w7.h;
import w7.s;
import ya.AbstractC1100b;
public final class FullScreenGoogleMapActivity extends j implements F, a {
public final List l = new ArrayList();
public AlertDialog m;
private AlertDialog n0(Throwable th) {
return o0(th, null);
}
private AlertDialog o0(Throwable th, String str) {
AlertDialog create = p0(th, str, null).create();
create.setOwnerActivity(this);
return create;
}
private AlertDialog.Builder p0(Throwable th, final String str, DialogInterface.OnClickListener onClickListener) {
AlertDialog.Builder g = AbstractC0665a.g(this);
boolean z = false;
final String str2 = null;
if ((th instanceof JavaScriptException) || (th instanceof c) || (th instanceof e) || (th instanceof D) || (th instanceof q)) {
if (TextUtils.isEmpty(str)) {
str = th.getMessage();
}
g.setIcon(R.drawable.ic_dialog_alert);
g.setTitle(h.c);
if (th instanceof q) {
g.setCancelable(false);
}
} else {
if (th instanceof f) {
if (AbstractC0515a.c(((f) th).a())) {
if (TextUtils.isEmpty(str)) {
str = th.getMessage();
}
if (TextUtils.isEmpty(str)) {
str = Utils.M2(th);
}
} else {
if (!Utils.d3(getApplicationContext())) {
str = getApplicationContext().getString(h.f);
} else if (TextUtils.isEmpty(str)) {
str = Utils.M2(th);
}
str2 = Utils.N2(th);
g.setIcon(R.drawable.ic_dialog_alert);
g.setTitle(h.c);
}
} else if (th != null) {
if (!Utils.d3(getApplicationContext())) {
str = getApplicationContext().getString(h.f);
} else if (TextUtils.isEmpty(str)) {
str = Utils.M2(th);
}
str2 = Utils.N2(th);
g.setIcon(R.drawable.ic_dialog_alert);
g.setTitle(h.c);
} else {
g.setIcon(R.drawable.ic_dialog_alert);
g.setTitle(h.c);
}
z = true;
}
if (TextUtils.isEmpty(str)) {
str = getApplicationContext().getString(h.f);
}
g.setMessage(str);
if (onClickListener == null) {
onClickListener = new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
};
}
g.setPositiveButton(AbstractC1100b.e, onClickListener);
if (z) {
final Context applicationContext = getApplicationContext();
final WeakReference weakReference = new WeakReference(findViewById(R.id.content));
g.setNeutralButton(h.g, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
s.r(applicationContext, weakReference, str, str2);
}
});
}
return g;
}
@Override
public void J(final Throwable th, final DialogInterface.OnClickListener onClickListener) {
th.printStackTrace();
if (c()) {
Utils.l("XOneAndroidFramework", "An error has happened while the activity was being destroyed");
return;
}
if (!Utils.s3()) {
runOnUiThread(new Runnable() {
@Override
public final void run() {
FullScreenGoogleMapActivity.this.s0(th, onClickListener);
}
});
return;
}
AlertDialog create = p0(th, null, onClickListener).create();
this.m = create;
create.show();
TextView textView = (TextView) this.m.findViewById(R.id.message);
if (textView != null) {
textView.setTypeface(Utils.X0(getApplicationContext()));
}
}
@Override
public void a(C9.h hVar) {
if (this.l.contains(hVar)) {
return;
}
this.l.add(hVar);
}
@Override
public void b(final Throwable th) {
th.printStackTrace();
if (c()) {
Utils.l("XOneAndroidFramework", "An exception has happened while the activity was being destroyed");
return;
}
AlertDialog alertDialog = this.m;
if (alertDialog == null || !alertDialog.isShowing()) {
if (!Utils.s3()) {
runOnUiThread(new Runnable() {
@Override
public final void run() {
FullScreenGoogleMapActivity.this.r0(th);
}
});
return;
}
AlertDialog n0 = n0(th);
this.m = n0;
n0.show();
TextView textView = (TextView) this.m.findViewById(R.id.message);
if (textView != null) {
textView.setTypeface(Utils.X0(getApplicationContext()));
}
}
}
public boolean c() {
return isDestroyed();
}
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
try {
Intent intent = getIntent();
ArrayList u = AbstractC0698k.u(intent, "address", new ArrayList());
ArrayList u2 = AbstractC0698k.u(intent, "coords", new ArrayList());
ArrayList u3 = AbstractC0698k.u(intent, "descriptions", new ArrayList());
String t = AbstractC0698k.t(intent, "propname", null);
String t2 = AbstractC0698k.t(intent, "contentname", null);
String t3 = AbstractC0698k.t(intent, "marker-icon", null);
?? xoneMapsViewEmbed = new XoneMapsViewEmbed(this);
xoneMapsViewEmbed.R1(t, t2, u3, u2, u, t3);
setContentView((View) xoneMapsViewEmbed);
} catch (Exception e) {
e.printStackTrace();
Utils.g4(this, Utils.M2(e));
finish();
}
}
@Override
public void p(C9.h hVar) {
List<C9.f> j = C9.e.j(this, hVar);
if (j.isEmpty()) {
hVar.h(hVar.d());
return;
}
HashSet hashSet = new HashSet();
for (C9.f fVar : j) {
String a = fVar.a();
if (TextUtils.isEmpty(a)) {
a = "";
}
Utils.l("XOneAndroidFramework", "Permission denied: " + a);
if (fVar.b()) {
hashSet.add(fVar.a());
}
}
if (hashSet.isEmpty()) {
a(hVar);
C9.e.h(this, hVar);
} else {
J(new q(new StringBuilder(hVar.c())), new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
FullScreenGoogleMapActivity.this.t0(dialogInterface, i);
}
});
hVar.g(hashSet);
}
}
public final void r0(Throwable th) {
if (c()) {
Utils.l("XOneAndroidFramework", "An exception has happened while the activity was being destroyed");
return;
}
AlertDialog n0 = n0(th);
this.m = n0;
n0.show();
TextView textView = (TextView) this.m.findViewById(R.id.message);
if (textView != null) {
textView.setTypeface(Utils.X0(getApplicationContext()));
}
}
public final void s0(Throwable th, DialogInterface.OnClickListener onClickListener) {
AlertDialog create = p0(th, null, onClickListener).create();
this.m = create;
create.show();
TextView textView = (TextView) this.m.findViewById(R.id.message);
if (textView != null) {
textView.setTypeface(Utils.X0(getApplicationContext()));
}
}
public final void t0(DialogInterface dialogInterface, int i) {
try {
Intent intent = new Intent("android.settings.APPLICATION_DETAILS_SETTINGS");
intent.setData(Uri.fromParts("package", getPackageName(), null));
startActivity(intent);
finish();
} catch (Exception e) {
b(e);
}
}
}