NetMirror.apk
Download file
package androidx.core.app;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
/* JADX INFO: loaded from: classes.dex */
public abstract class h {
public static Intent a(Activity activity) {
Intent parentActivityIntent = activity.getParentActivityIntent();
if (parentActivityIntent != null) {
return parentActivityIntent;
}
String strC = c(activity);
if (strC == null) {
return null;
}
ComponentName componentName = new ComponentName(activity, strC);
try {
return d(activity, componentName) == null ? Intent.makeMainActivity(componentName) : new Intent().setComponent(componentName);
} catch (PackageManager.NameNotFoundException unused) {
Log.e("NavUtils", "getParentActivityIntent: bad parentActivityName '" + strC + "' in manifest");
return null;
}
}
public static Intent b(Context context, ComponentName componentName) throws PackageManager.NameNotFoundException {
String strD = d(context, componentName);
if (strD == null) {
return null;
}
ComponentName componentName2 = new ComponentName(componentName.getPackageName(), strD);
return d(context, componentName2) == null ? Intent.makeMainActivity(componentName2) : new Intent().setComponent(componentName2);
}
public static String c(Activity activity) {
try {
return d(activity, activity.getComponentName());
} catch (PackageManager.NameNotFoundException e4) {
throw new IllegalArgumentException(e4);
}
}
public static String d(Context context, ComponentName componentName) throws PackageManager.NameNotFoundException {
String string;
ActivityInfo activityInfo = context.getPackageManager().getActivityInfo(componentName, Build.VERSION.SDK_INT >= 29 ? 269222528 : 787072);
String str = activityInfo.parentActivityName;
if (str != null) {
return str;
}
Bundle bundle = activityInfo.metaData;
if (bundle == null || (string = bundle.getString("android.support.PARENT_ACTIVITY")) == null) {
return null;
}
if (string.charAt(0) != '.') {
return string;
}
return context.getPackageName() + string;
}
public static void e(Activity activity, Intent intent) {
activity.navigateUpTo(intent);
}
public static boolean f(Activity activity, Intent intent) {
return activity.shouldUpRecreateTask(intent);
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file