package androidx.navigation; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.ContextWrapper; import android.content.Intent; import android.content.res.Resources; import android.content.res.TypedArray; import android.net.Uri; import android.os.Bundle; import android.util.AttributeSet; import android.util.Log; import androidx.core.app.ActivityCompat; import androidx.core.app.ActivityOptionsCompat; import androidx.navigation.Navigator; import io.sentry.Session; import io.sentry.protocol.OperatingSystem; import java.util.Iterator; import java.util.regex.Matcher; import java.util.regex.Pattern; import kotlin.Metadata; import kotlin.jvm.JvmStatic; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; import kotlin.ranges.RangesKt; import kotlin.sequences.SequencesKt; import kotlin.text.StringsKt; /* compiled from: ActivityNavigator.kt */ @Navigator.Name("activity") @Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0004\b\u0017\u0018\u0000 \u00162\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0003\u0016\u0017\u0018B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\b\u0010\n\u001a\u00020\u0002H\u0016J0\u0010\u000b\u001a\u0004\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u00022\b\u0010\u000e\u001a\u0004\u0018\u00010\u000f2\b\u0010\u0010\u001a\u0004\u0018\u00010\u00112\b\u0010\u0012\u001a\u0004\u0018\u00010\u0013H\u0016J\b\u0010\u0014\u001a\u00020\u0015H\u0016R\u0013\u0010\u0003\u001a\u00020\u00048\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0010\u0010\b\u001a\u0004\u0018\u00010\tX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0019"}, d2 = {"Landroidx/navigation/ActivityNavigator;", "Landroidx/navigation/Navigator;", "Landroidx/navigation/ActivityNavigator$Destination;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "getContext", "()Landroid/content/Context;", "hostActivity", "Landroid/app/Activity;", "createDestination", "navigate", "Landroidx/navigation/NavDestination;", "destination", "args", "Landroid/os/Bundle;", "navOptions", "Landroidx/navigation/NavOptions;", "navigatorExtras", "Landroidx/navigation/Navigator$Extras;", "popBackStack", "", "Companion", "Destination", "Extras", "navigation-runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes2.dex */ public class ActivityNavigator extends Navigator { /* renamed from: Companion, reason: from kotlin metadata */ public static final Companion INSTANCE = new Companion(null); private static final String EXTRA_NAV_CURRENT = "android-support-navigation:ActivityNavigator:current"; private static final String EXTRA_NAV_SOURCE = "android-support-navigation:ActivityNavigator:source"; private static final String EXTRA_POP_ENTER_ANIM = "android-support-navigation:ActivityNavigator:popEnterAnim"; private static final String EXTRA_POP_EXIT_ANIM = "android-support-navigation:ActivityNavigator:popExitAnim"; private static final String LOG_TAG = "ActivityNavigator"; private final Context context; private final Activity hostActivity; @JvmStatic public static final void applyPopAnimationsToPendingTransition(Activity activity) { INSTANCE.applyPopAnimationsToPendingTransition(activity); } public final Context getContext() { return this.context; } public ActivityNavigator(Context context) { Object obj; Intrinsics.checkNotNullParameter(context, "context"); this.context = context; Iterator it = SequencesKt.generateSequence(context, new Function1() { // from class: androidx.navigation.ActivityNavigator$hostActivity$1 @Override // kotlin.jvm.functions.Function1 public final Context invoke(Context it2) { Intrinsics.checkNotNullParameter(it2, "it"); if (it2 instanceof ContextWrapper) { return ((ContextWrapper) it2).getBaseContext(); } return null; } }).iterator(); while (true) { if (!it.hasNext()) { obj = null; break; } else { obj = it.next(); if (((Context) obj) instanceof Activity) { break; } } } this.hostActivity = (Activity) obj; } /* JADX WARN: Can't rename method to resolve collision */ @Override // androidx.navigation.Navigator public Destination createDestination() { return new Destination(this); } @Override // androidx.navigation.Navigator public boolean popBackStack() { Activity activity = this.hostActivity; if (activity == null) { return false; } activity.finish(); return true; } @Override // androidx.navigation.Navigator public NavDestination navigate(Destination destination, Bundle args, NavOptions navOptions, Navigator.Extras navigatorExtras) { Intent intent; int intExtra; Intrinsics.checkNotNullParameter(destination, "destination"); if (destination.getIntent() == null) { throw new IllegalStateException(("Destination " + destination.getId() + " does not have an Intent set.").toString()); } Intent intent2 = new Intent(destination.getIntent()); if (args != null) { intent2.putExtras(args); String dataPattern = destination.getDataPattern(); String str = dataPattern; if (str != null && str.length() != 0) { StringBuffer stringBuffer = new StringBuffer(); Matcher matcher = Pattern.compile("\\{(.+?)\\}").matcher(str); while (matcher.find()) { String group = matcher.group(1); if (args.containsKey(group)) { matcher.appendReplacement(stringBuffer, ""); stringBuffer.append(Uri.encode(String.valueOf(args.get(group)))); } else { throw new IllegalArgumentException("Could not find " + group + " in " + args + " to fill data pattern " + dataPattern); } } matcher.appendTail(stringBuffer); intent2.setData(Uri.parse(stringBuffer.toString())); } } boolean z = navigatorExtras instanceof Extras; if (z) { intent2.addFlags(((Extras) navigatorExtras).getFlags()); } if (this.hostActivity == null) { intent2.addFlags(268435456); } if (navOptions != null && navOptions.getSingleTop()) { intent2.addFlags(536870912); } Activity activity = this.hostActivity; if (activity != null && (intent = activity.getIntent()) != null && (intExtra = intent.getIntExtra(EXTRA_NAV_CURRENT, 0)) != 0) { intent2.putExtra(EXTRA_NAV_SOURCE, intExtra); } intent2.putExtra(EXTRA_NAV_CURRENT, destination.getId()); Resources resources = this.context.getResources(); if (navOptions != null) { int popEnterAnim = navOptions.getPopEnterAnim(); int popExitAnim = navOptions.getPopExitAnim(); if ((popEnterAnim > 0 && Intrinsics.areEqual(resources.getResourceTypeName(popEnterAnim), "animator")) || (popExitAnim > 0 && Intrinsics.areEqual(resources.getResourceTypeName(popExitAnim), "animator"))) { Log.w(LOG_TAG, "Activity destinations do not support Animator resource. Ignoring popEnter resource " + resources.getResourceName(popEnterAnim) + " and popExit resource " + resources.getResourceName(popExitAnim) + " when launching " + destination); } else { intent2.putExtra(EXTRA_POP_ENTER_ANIM, popEnterAnim); intent2.putExtra(EXTRA_POP_EXIT_ANIM, popExitAnim); } } if (z) { ActivityOptionsCompat activityOptions = ((Extras) navigatorExtras).getActivityOptions(); if (activityOptions != null) { ActivityCompat.startActivity(this.context, intent2, activityOptions.toBundle()); } else { this.context.startActivity(intent2); } } else { this.context.startActivity(intent2); } if (navOptions == null || this.hostActivity == null) { return null; } int enterAnim = navOptions.getEnterAnim(); int exitAnim = navOptions.getExitAnim(); if ((enterAnim > 0 && Intrinsics.areEqual(resources.getResourceTypeName(enterAnim), "animator")) || (exitAnim > 0 && Intrinsics.areEqual(resources.getResourceTypeName(exitAnim), "animator"))) { Log.w(LOG_TAG, "Activity destinations do not support Animator resource. Ignoring enter resource " + resources.getResourceName(enterAnim) + " and exit resource " + resources.getResourceName(exitAnim) + "when launching " + destination); return null; } if (enterAnim < 0 && exitAnim < 0) { return null; } this.hostActivity.overridePendingTransition(RangesKt.coerceAtLeast(enterAnim, 0), RangesKt.coerceAtLeast(exitAnim, 0)); return null; } /* compiled from: ActivityNavigator.kt */ @Metadata(d1 = {"\u0000`\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\r\b\u0017\u0018\u00002\u00020\u0001B\u000f\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004B\u0015\u0012\u000e\u0010\u0005\u001a\n\u0012\u0006\b\u0001\u0012\u00020\u00000\u0006¢\u0006\u0002\u0010\u0007J\u0013\u0010\u001d\u001a\u00020\u001e2\b\u0010\u001f\u001a\u0004\u0018\u00010 H\u0096\u0002J\b\u0010!\u001a\u00020\"H\u0016J\u0018\u0010#\u001a\u00020$2\u0006\u0010%\u001a\u00020&2\u0006\u0010'\u001a\u00020(H\u0017J\u001c\u0010)\u001a\u0004\u0018\u00010\t2\u0006\u0010%\u001a\u00020&2\b\u0010*\u001a\u0004\u0018\u00010\tH\u0002J\u0010\u0010+\u001a\u00020\u00002\b\u0010\n\u001a\u0004\u0018\u00010\tJ\u0010\u0010,\u001a\u00020\u00002\b\u0010-\u001a\u0004\u0018\u00010\rJ\u0010\u0010.\u001a\u00020\u00002\b\u0010\u0012\u001a\u0004\u0018\u00010\u0011J\u0010\u0010/\u001a\u00020\u00002\b\u0010\u0015\u001a\u0004\u0018\u00010\tJ\u0010\u00100\u001a\u00020\u00002\b\u0010\u0018\u001a\u0004\u0018\u00010\u0017J\u0010\u00101\u001a\u00020\u00002\b\u00102\u001a\u0004\u0018\u00010\tJ\b\u00103\u001a\u00020\u001eH\u0017J\b\u00104\u001a\u00020\tH\u0016R$\u0010\n\u001a\u0004\u0018\u00010\t2\b\u0010\b\u001a\u0004\u0018\u00010\t8F@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR$\u0010\u000e\u001a\u0004\u0018\u00010\r2\b\u0010\b\u001a\u0004\u0018\u00010\r8F@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R$\u0010\u0012\u001a\u0004\u0018\u00010\u00112\b\u0010\b\u001a\u0004\u0018\u00010\u00118F@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\"\u0010\u0015\u001a\u0004\u0018\u00010\t2\b\u0010\b\u001a\u0004\u0018\u00010\t@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\fR\"\u0010\u0018\u001a\u0004\u0018\u00010\u00172\b\u0010\b\u001a\u0004\u0018\u00010\u0017@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u001aR$\u0010\u001b\u001a\u0004\u0018\u00010\t2\b\u0010\b\u001a\u0004\u0018\u00010\t8F@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\f¨\u00065"}, d2 = {"Landroidx/navigation/ActivityNavigator$Destination;", "Landroidx/navigation/NavDestination;", "navigatorProvider", "Landroidx/navigation/NavigatorProvider;", "(Landroidx/navigation/NavigatorProvider;)V", "activityNavigator", "Landroidx/navigation/Navigator;", "(Landroidx/navigation/Navigator;)V", "", "", "action", "getAction", "()Ljava/lang/String;", "Landroid/content/ComponentName;", "component", "getComponent", "()Landroid/content/ComponentName;", "Landroid/net/Uri;", "data", "getData", "()Landroid/net/Uri;", "dataPattern", "getDataPattern", "Landroid/content/Intent;", "intent", "getIntent", "()Landroid/content/Intent;", "targetPackage", "getTargetPackage", "equals", "", "other", "", "hashCode", "", "onInflate", "", "context", "Landroid/content/Context;", Session.JsonKeys.ATTRS, "Landroid/util/AttributeSet;", "parseApplicationId", "pattern", "setAction", "setComponentName", "name", "setData", "setDataPattern", "setIntent", "setTargetPackage", "packageName", "supportsActions", "toString", "navigation-runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes2.dex */ public static class Destination extends NavDestination { private String action; private ComponentName component; private Uri data; private String dataPattern; private Intent intent; private String targetPackage; public final String getDataPattern() { return this.dataPattern; } public final Intent getIntent() { return this.intent; } public final Destination setDataPattern(String dataPattern) { this.dataPattern = dataPattern; return this; } public final Destination setIntent(Intent intent) { this.intent = intent; return this; } @Override // androidx.navigation.NavDestination public boolean supportsActions() { return false; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public Destination(Navigator activityNavigator) { super(activityNavigator); Intrinsics.checkNotNullParameter(activityNavigator, "activityNavigator"); } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public Destination(NavigatorProvider navigatorProvider) { this((Navigator) navigatorProvider.getNavigator(ActivityNavigator.class)); Intrinsics.checkNotNullParameter(navigatorProvider, "navigatorProvider"); } @Override // androidx.navigation.NavDestination public void onInflate(Context context, AttributeSet attrs) { Intrinsics.checkNotNullParameter(context, "context"); Intrinsics.checkNotNullParameter(attrs, "attrs"); super.onInflate(context, attrs); TypedArray obtainAttributes = context.getResources().obtainAttributes(attrs, R.styleable.ActivityNavigator); Intrinsics.checkNotNullExpressionValue(obtainAttributes, "context.resources.obtain…tyNavigator\n )"); setTargetPackage(parseApplicationId(context, obtainAttributes.getString(R.styleable.ActivityNavigator_targetPackage))); String string = obtainAttributes.getString(R.styleable.ActivityNavigator_android_name); if (string != null) { if (string.charAt(0) == '.') { string = context.getPackageName() + string; } setComponentName(new ComponentName(context, string)); } setAction(obtainAttributes.getString(R.styleable.ActivityNavigator_action)); String parseApplicationId = parseApplicationId(context, obtainAttributes.getString(R.styleable.ActivityNavigator_data)); if (parseApplicationId != null) { setData(Uri.parse(parseApplicationId)); } setDataPattern(parseApplicationId(context, obtainAttributes.getString(R.styleable.ActivityNavigator_dataPattern))); obtainAttributes.recycle(); } private final String parseApplicationId(Context context, String pattern) { if (pattern == null) { return null; } String packageName = context.getPackageName(); Intrinsics.checkNotNullExpressionValue(packageName, "context.packageName"); return StringsKt.replace$default(pattern, NavInflater.APPLICATION_ID_PLACEHOLDER, packageName, false, 4, (Object) null); } public final String getTargetPackage() { Intent intent = this.intent; if (intent != null) { return intent.getPackage(); } return null; } public final Destination setTargetPackage(String packageName) { if (this.intent == null) { this.intent = new Intent(); } Intent intent = this.intent; Intrinsics.checkNotNull(intent); intent.setPackage(packageName); return this; } public final ComponentName getComponent() { Intent intent = this.intent; if (intent != null) { return intent.getComponent(); } return null; } public final Destination setComponentName(ComponentName name) { if (this.intent == null) { this.intent = new Intent(); } Intent intent = this.intent; Intrinsics.checkNotNull(intent); intent.setComponent(name); return this; } public final String getAction() { Intent intent = this.intent; if (intent != null) { return intent.getAction(); } return null; } public final Destination setAction(String action) { if (this.intent == null) { this.intent = new Intent(); } Intent intent = this.intent; Intrinsics.checkNotNull(intent); intent.setAction(action); return this; } public final Uri getData() { Intent intent = this.intent; if (intent != null) { return intent.getData(); } return null; } public final Destination setData(Uri data) { if (this.intent == null) { this.intent = new Intent(); } Intent intent = this.intent; Intrinsics.checkNotNull(intent); intent.setData(data); return this; } @Override // androidx.navigation.NavDestination public String toString() { ComponentName component = getComponent(); StringBuilder sb = new StringBuilder(); sb.append(super.toString()); if (component != null) { sb.append(" class="); sb.append(component.getClassName()); } else { String action = getAction(); if (action != null) { sb.append(" action="); sb.append(action); } } String sb2 = sb.toString(); Intrinsics.checkNotNullExpressionValue(sb2, "sb.toString()"); return sb2; } @Override // androidx.navigation.NavDestination public boolean equals(Object other) { if (other == null || !(other instanceof Destination) || !super.equals(other)) { return false; } Intent intent = this.intent; if (intent != null) { if (!intent.filterEquals(((Destination) other).intent)) { return false; } } else if (((Destination) other).intent != null) { return false; } return Intrinsics.areEqual(this.dataPattern, ((Destination) other).dataPattern); } @Override // androidx.navigation.NavDestination public int hashCode() { int hashCode = super.hashCode() * 31; Intent intent = this.intent; int filterHashCode = (hashCode + (intent != null ? intent.filterHashCode() : 0)) * 31; String str = this.dataPattern; return filterHashCode + (str != null ? str.hashCode() : 0); } } /* compiled from: ActivityNavigator.kt */ @Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u00002\u00020\u0001:\u0001\u000bB\u0019\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\u0006R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\f"}, d2 = {"Landroidx/navigation/ActivityNavigator$Extras;", "Landroidx/navigation/Navigator$Extras;", "flags", "", "activityOptions", "Landroidx/core/app/ActivityOptionsCompat;", "(ILandroidx/core/app/ActivityOptionsCompat;)V", "getActivityOptions", "()Landroidx/core/app/ActivityOptionsCompat;", "getFlags", "()I", "Builder", "navigation-runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes2.dex */ public static final class Extras implements Navigator.Extras { private final ActivityOptionsCompat activityOptions; private final int flags; public final ActivityOptionsCompat getActivityOptions() { return this.activityOptions; } public final int getFlags() { return this.flags; } public Extras(int i, ActivityOptionsCompat activityOptionsCompat) { this.flags = i; this.activityOptions = activityOptionsCompat; } /* compiled from: ActivityNavigator.kt */ @Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0007\u001a\u00020\u00002\u0006\u0010\u0005\u001a\u00020\u0006J\u0006\u0010\b\u001a\u00020\tJ\u000e\u0010\n\u001a\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u0004R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Landroidx/navigation/ActivityNavigator$Extras$Builder;", "", "()V", "activityOptions", "Landroidx/core/app/ActivityOptionsCompat;", "flags", "", "addFlags", OperatingSystem.JsonKeys.BUILD, "Landroidx/navigation/ActivityNavigator$Extras;", "setActivityOptions", "navigation-runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes2.dex */ public static final class Builder { private ActivityOptionsCompat activityOptions; private int flags; public final Builder addFlags(int flags) { this.flags = flags | this.flags; return this; } public final Builder setActivityOptions(ActivityOptionsCompat activityOptions) { Intrinsics.checkNotNullParameter(activityOptions, "activityOptions"); this.activityOptions = activityOptions; return this; } public final Extras build() { return new Extras(this.flags, this.activityOptions); } } } /* compiled from: ActivityNavigator.kt */ @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\fH\u0007R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\r"}, d2 = {"Landroidx/navigation/ActivityNavigator$Companion;", "", "()V", "EXTRA_NAV_CURRENT", "", "EXTRA_NAV_SOURCE", "EXTRA_POP_ENTER_ANIM", "EXTRA_POP_EXIT_ANIM", "LOG_TAG", "applyPopAnimationsToPendingTransition", "", "activity", "Landroid/app/Activity;", "navigation-runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes2.dex */ public static final class Companion { public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { this(); } private Companion() { } @JvmStatic public final void applyPopAnimationsToPendingTransition(Activity activity) { Intrinsics.checkNotNullParameter(activity, "activity"); Intent intent = activity.getIntent(); if (intent == null) { return; } int intExtra = intent.getIntExtra(ActivityNavigator.EXTRA_POP_ENTER_ANIM, -1); int intExtra2 = intent.getIntExtra(ActivityNavigator.EXTRA_POP_EXIT_ANIM, -1); if (intExtra == -1 && intExtra2 == -1) { return; } if (intExtra == -1) { intExtra = 0; } if (intExtra2 == -1) { intExtra2 = 0; } activity.overridePendingTransition(intExtra, intExtra2); } } }