Rabbit-R1/android (non root)/java/sources/androidx/navigation/fragment/DialogFragmentNavigatorDestinationBuilder.java
2024-05-21 17:08:36 -04:00

48 lines
3.9 KiB
Java

package androidx.navigation.fragment;
import androidx.fragment.app.DialogFragment;
import androidx.navigation.NavDestinationBuilder;
import androidx.navigation.NavDestinationDsl;
import androidx.navigation.fragment.DialogFragmentNavigator;
import io.sentry.protocol.OperatingSystem;
import kotlin.Deprecated;
import kotlin.Metadata;
import kotlin.ReplaceWith;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KClass;
/* compiled from: DialogFragmentNavigatorDestinationBuilder.kt */
@NavDestinationDsl
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\b\u0007\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B)\b\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\b\u0001\u0010\u0005\u001a\u00020\u0006\u0012\u000e\u0010\u0007\u001a\n\u0012\u0006\b\u0001\u0012\u00020\t0\\u0006\u0002\u0010\nB'\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u000b\u001a\u00020\f\u0012\u000e\u0010\u0007\u001a\n\u0012\u0006\b\u0001\u0012\u00020\t0\\u0006\u0002\u0010\rJ\b\u0010\u000e\u001a\u00020\u0002H\u0016R\u0016\u0010\u0007\u001a\n\u0012\u0006\b\u0001\u0012\u00020\t0\bX\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u000f"}, d2 = {"Landroidx/navigation/fragment/DialogFragmentNavigatorDestinationBuilder;", "Landroidx/navigation/NavDestinationBuilder;", "Landroidx/navigation/fragment/DialogFragmentNavigator$Destination;", "navigator", "Landroidx/navigation/fragment/DialogFragmentNavigator;", "id", "", "fragmentClass", "Lkotlin/reflect/KClass;", "Landroidx/fragment/app/DialogFragment;", "(Landroidx/navigation/fragment/DialogFragmentNavigator;ILkotlin/reflect/KClass;)V", "route", "", "(Landroidx/navigation/fragment/DialogFragmentNavigator;Ljava/lang/String;Lkotlin/reflect/KClass;)V", OperatingSystem.JsonKeys.BUILD, "navigation-fragment_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes2.dex */
public final class DialogFragmentNavigatorDestinationBuilder extends NavDestinationBuilder<DialogFragmentNavigator.Destination> {
private KClass<? extends DialogFragment> fragmentClass;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@Deprecated(message = "Use routes to build your DialogFragmentNavigatorDestination instead", replaceWith = @ReplaceWith(expression = "DialogFragmentNavigatorDestinationBuilder(navigator, route = id.toString(), fragmentClass) ", imports = {}))
public DialogFragmentNavigatorDestinationBuilder(DialogFragmentNavigator navigator, int i, KClass<? extends DialogFragment> fragmentClass) {
super(navigator, i);
Intrinsics.checkNotNullParameter(navigator, "navigator");
Intrinsics.checkNotNullParameter(fragmentClass, "fragmentClass");
this.fragmentClass = fragmentClass;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public DialogFragmentNavigatorDestinationBuilder(DialogFragmentNavigator navigator, String route, KClass<? extends DialogFragment> fragmentClass) {
super(navigator, route);
Intrinsics.checkNotNullParameter(navigator, "navigator");
Intrinsics.checkNotNullParameter(route, "route");
Intrinsics.checkNotNullParameter(fragmentClass, "fragmentClass");
this.fragmentClass = fragmentClass;
}
@Override // androidx.navigation.NavDestinationBuilder
public DialogFragmentNavigator.Destination build() {
DialogFragmentNavigator.Destination destination = (DialogFragmentNavigator.Destination) super.build();
String name = JvmClassMappingKt.getJavaClass((KClass) this.fragmentClass).getName();
Intrinsics.checkNotNullExpressionValue(name, "fragmentClass.java.name");
destination.setClassName(name);
return destination;
}
}