正在查看: Sandridge Go v2025.2.170190457 应用的 OfflineInstallCompanyPortalDialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Sandridge Go v2025.2.170190457 应用的 OfflineInstallCompanyPortalDialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.microsoft.intune.mam.client.app.offline;
import android.R;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import com.microsoft.intune.mam.client.app.AbstractC0130c;
import com.microsoft.intune.mam.client.app.ThemeManagerBehavior;
public class OfflineInstallCompanyPortalDialogActivity extends OfflineStartupBlockedActivity {
private static final t5.e s = t5.f.a(OfflineInstallCompanyPortalDialogActivity.class);
private static int t = 0;
private boolean p = false;
private String q = null;
private final ThemeManagerBehavior r = (ThemeManagerBehavior) com.microsoft.intune.mam.client.app.M.e(ThemeManagerBehavior.class);
public static void h(OfflineInstallCompanyPortalDialogActivity offlineInstallCompanyPortalDialogActivity, Context context, DialogInterface dialogInterface, int i) {
offlineInstallCompanyPortalDialogActivity.getClass();
s.m("User clicked positive button to go to Play Store.", new Object[0]);
AbstractC0130c.c(offlineInstallCompanyPortalDialogActivity.q, dialogInterface, context);
offlineInstallCompanyPortalDialogActivity.finish();
}
public static void i(OfflineInstallCompanyPortalDialogActivity offlineInstallCompanyPortalDialogActivity, DialogInterface dialogInterface, int i) {
offlineInstallCompanyPortalDialogActivity.getClass();
s.m("User clicked negative button to go back.", new Object[0]);
dialogInterface.dismiss();
offlineInstallCompanyPortalDialogActivity.finish();
}
public static void j(OfflineInstallCompanyPortalDialogActivity offlineInstallCompanyPortalDialogActivity, DialogInterface dialogInterface) {
offlineInstallCompanyPortalDialogActivity.getClass();
s.m("User cancelled dialog with hardware back button.", new Object[0]);
dialogInterface.dismiss();
offlineInstallCompanyPortalDialogActivity.finish();
}
@Override
protected void b() {
if (this.p) {
super.b();
} else {
setTheme(com.microsoft.intune.mam.i.c);
}
}
@Override
protected void c() {
s.m("Displaying " + OfflineInstallCompanyPortalDialogActivity.class.getSimpleName(), new Object[0]);
AlertDialog.Builder builder = new AlertDialog.Builder(this);
final Context applicationContext = getApplicationContext();
boolean a = AbstractC0130c.a(this);
builder.setMessage(com.microsoft.intune.mam.client.app.M.f() ? com.microsoft.intune.mam.client.app.M.g() : a ? getString(com.microsoft.intune.mam.h.o) : getString(com.microsoft.intune.mam.h.p)).setPositiveButton(applicationContext.getText(a ? com.microsoft.intune.mam.h.c : com.microsoft.intune.mam.h.f), new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
OfflineInstallCompanyPortalDialogActivity.h(OfflineInstallCompanyPortalDialogActivity.this, applicationContext, dialogInterface, i);
}
}).setCancelable(true);
builder.setNegativeButton(getText(this.p ? com.microsoft.intune.mam.h.b : com.microsoft.intune.mam.h.a), new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
OfflineInstallCompanyPortalDialogActivity.i(OfflineInstallCompanyPortalDialogActivity.this, dialogInterface, i);
}
});
AlertDialog show = builder.show();
show.setCanceledOnTouchOutside(false);
show.setOnCancelListener(new DialogInterface.OnCancelListener() {
@Override
public final void onCancel(DialogInterface dialogInterface) {
OfflineInstallCompanyPortalDialogActivity.j(OfflineInstallCompanyPortalDialogActivity.this, dialogInterface);
}
});
((TextView) show.findViewById(R.id.message)).setTextColor(this.r.getTextColor(getResources().getColor(R.color.black), this));
Button button = (Button) show.findViewById(R.id.button1);
ThemeManagerBehavior themeManagerBehavior = this.r;
Resources resources = getResources();
int i = com.microsoft.intune.mam.b.b;
button.setTextColor(themeManagerBehavior.getAccentColor(resources.getColor(i), this));
((Button) show.findViewById(R.id.button2)).setTextColor(this.r.getAccentColor(getResources().getColor(i), this));
this.r.applyBackgroundColor(show.getWindow(), getResources().getColor(com.microsoft.intune.mam.b.a), this);
}
@Override
protected void onCreate(Bundle bundle) {
this.p = getIntent().getBooleanExtra("activityLaunchBlocked", false);
this.q = getIntent().getStringExtra("identityAuthority");
int i = t + 1;
t = i;
if (!this.p && i > 1) {
finish();
}
if (this.p) {
this.r.applyAppThemeOrDefault(this, com.microsoft.intune.mam.i.a);
}
super.onCreate(bundle);
}
@Override
protected void onDestroy() {
t--;
super.onDestroy();
}
}