com-dot-app-sancharsaathi-1-5-0.apk
Download file
package G;
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;
public abstract class g {
public static Intent a(Activity activity) {
Intent parentActivityIntent = activity.getParentActivityIntent();
if (parentActivityIntent != null) {
return parentActivityIntent;
}
String c4 = c(activity);
if (c4 == null) {
return null;
}
ComponentName componentName = new ComponentName(activity, c4);
try {
return d(activity, componentName) == null ? Intent.makeMainActivity(componentName) : new Intent().setComponent(componentName);
} catch (PackageManager.NameNotFoundException unused) {
Log.e("NavUtils", "getParentActivityIntent: bad parentActivityName '" + c4 + "' in manifest");
return null;
}
}
public static Intent b(Context context, ComponentName componentName) {
String d4 = d(context, componentName);
if (d4 == null) {
return null;
}
ComponentName componentName2 = new ComponentName(componentName.getPackageName(), d4);
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) {
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);
}
}
Download file