正在查看: Minits v4.9.3.32 应用的 AppLauncherAndShortcuts.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Minits v4.9.3.32 应用的 AppLauncherAndShortcuts.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.xone.android.framework;
import android.R;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import c8.C0537o;
import com.xone.android.utils.Utils;
import eb.AbstractC0665a;
import ha.C0754i;
import ha.C0755j;
import java.io.File;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import ua.InterfaceC1038m0;
public final class AppLauncherAndShortcuts extends androidx.fragment.app.j {
public AlertDialog l;
private static void j0(Dialog dialog) {
if (dialog == null) {
return;
}
try {
if (dialog.isShowing()) {
dialog.dismiss();
}
} catch (Exception e) {
e.printStackTrace();
}
}
private void k0(StringBuilder sb2) {
Context applicationContext = getApplicationContext();
sb2.append("\n\n");
sb2.append(getString(AbstractC0568j.n));
sb2.append(" ");
sb2.append(Utils.Y0(applicationContext));
}
public final boolean l0(C0755j c0755j) {
Context applicationContext = getApplicationContext();
return Utils.f0(applicationContext, c0755j.b(), applicationContext.getPackageName(), c0755j.a());
}
public final List m0(List list) {
ArrayList arrayList = new ArrayList();
Iterator it = list.iterator();
while (it.hasNext()) {
C0755j c0755j = (C0755j) it.next();
arrayList.add(new C0754i(c0755j.a(), l0(c0755j)));
}
return arrayList;
}
public final List n0() {
File[] listFiles;
ArrayList arrayList = new ArrayList();
File parentFile = getApplicationContext().getFilesDir().getParentFile();
if (parentFile != null && (listFiles = parentFile.listFiles()) != null) {
for (File file : listFiles) {
if (Utils.u3(file)) {
String substring = file.getName().substring(4);
arrayList.add(new C0755j(substring, o0(getApplicationContext(), substring)));
}
}
}
return arrayList;
}
public final File o0(Context context, String str) {
return new File(new File(context.getApplicationInfo().dataDir, "app_" + str), "icon.png");
}
public void onCreate(Bundle bundle) {
requestWindowFeature(1);
super.onCreate(bundle);
List n0 = n0();
if (n0.isEmpty()) {
y0();
return;
}
try {
if (Build.VERSION.SDK_INT >= 26 && n0.size() != 1) {
setContentView(AbstractC0565g.A);
RecyclerView findViewById = findViewById(AbstractC0564f.x1);
findViewById.setLayoutManager(new GridLayoutManager(this, 3, 0, false));
C0537o c0537o = new C0537o(this);
c0537o.N(n0);
findViewById.setAdapter(c0537o);
return;
}
for (C0754i c0754i : m0(n0)) {
Toast.makeText((Context) this, (CharSequence) getString(c0754i.b() ? AbstractC0568j.j : AbstractC0568j.u, c0754i.a()), 1).show();
}
finish();
} catch (Exception e) {
e.printStackTrace();
finish();
}
}
public void onDestroy() {
j0(this.l);
super.onDestroy();
}
public Typeface p0() {
return B0.h.g(getApplicationContext(), ha.u.a);
}
public void y0() {
StringBuilder sb2 = new StringBuilder();
sb2.append(getString(AbstractC0568j.T));
Context applicationContext = getApplicationContext();
if (!C9.e.r(applicationContext)) {
k0(sb2);
} else if (C9.e.p(applicationContext, "android.permission.READ_PHONE_STATE")) {
k0(sb2);
}
AlertDialog.Builder h = AbstractC0665a.h(this, ((InterfaceC1038m0) applicationContext).s0());
h.setMessage(sb2);
h.setCancelable(false);
final WeakReference weakReference = new WeakReference(this);
h.setPositiveButton(AbstractC0568j.a, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
Utils.y3(weakReference, dialogInterface, i);
}
});
j0(this.l);
AlertDialog create = h.create();
this.l = create;
create.show();
TextView textView = (TextView) this.l.findViewById(R.id.message);
if (textView != null) {
textView.setTypeface(p0());
}
}
}