Rabbit-R1/original r1/smali/smali_classes2/androidx/navigation/NavGraphNavigator.smali
2024-05-21 17:08:36 -04:00

332 lines
10 KiB
Smali

.class public Landroidx/navigation/NavGraphNavigator;
.super Landroidx/navigation/Navigator;
.source "NavGraphNavigator.kt"
# annotations
.annotation runtime Landroidx/navigation/Navigator$Name;
value = "navigation"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/navigation/Navigator<",
"Landroidx/navigation/NavGraph;",
">;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0017\u0018\u00002\u0008\u0012\u0004\u0012\u00020\u00020\u0001B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u00a2\u0006\u0002\u0010\u0005J\u0008\u0010\u000c\u001a\u00020\u0002H\u0016J$\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\t2\u0008\u0010\u0010\u001a\u0004\u0018\u00010\u00112\u0008\u0010\u0012\u001a\u0004\u0018\u00010\u0013H\u0002J*\u0010\r\u001a\u00020\u000e2\u000c\u0010\u0014\u001a\u0008\u0012\u0004\u0012\u00020\t0\u00082\u0008\u0010\u0010\u001a\u0004\u0018\u00010\u00112\u0008\u0010\u0012\u001a\u0004\u0018\u00010\u0013H\u0016R\u001d\u0010\u0006\u001a\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\t0\u00080\u00078F\u00a2\u0006\u0006\u001a\u0004\u0008\n\u0010\u000bR\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0015"
}
d2 = {
"Landroidx/navigation/NavGraphNavigator;",
"Landroidx/navigation/Navigator;",
"Landroidx/navigation/NavGraph;",
"navigatorProvider",
"Landroidx/navigation/NavigatorProvider;",
"(Landroidx/navigation/NavigatorProvider;)V",
"backStack",
"Lkotlinx/coroutines/flow/StateFlow;",
"",
"Landroidx/navigation/NavBackStackEntry;",
"getBackStack",
"()Lkotlinx/coroutines/flow/StateFlow;",
"createDestination",
"navigate",
"",
"entry",
"navOptions",
"Landroidx/navigation/NavOptions;",
"navigatorExtras",
"Landroidx/navigation/Navigator$Extras;",
"entries",
"navigation-common_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private final navigatorProvider:Landroidx/navigation/NavigatorProvider;
# direct methods
.method public constructor <init>(Landroidx/navigation/NavigatorProvider;)V
.locals 1
const-string v0, "navigatorProvider"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 33
invoke-direct {p0}, Landroidx/navigation/Navigator;-><init>()V
iput-object p1, p0, Landroidx/navigation/NavGraphNavigator;->navigatorProvider:Landroidx/navigation/NavigatorProvider;
return-void
.end method
.method private final navigate(Landroidx/navigation/NavBackStackEntry;Landroidx/navigation/NavOptions;Landroidx/navigation/Navigator$Extras;)V
.locals 4
.line 67
invoke-virtual {p1}, Landroidx/navigation/NavBackStackEntry;->getDestination()Landroidx/navigation/NavDestination;
move-result-object v0
const-string v1, "null cannot be cast to non-null type androidx.navigation.NavGraph"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, Landroidx/navigation/NavGraph;
.line 68
invoke-virtual {p1}, Landroidx/navigation/NavBackStackEntry;->getArguments()Landroid/os/Bundle;
move-result-object p1
.line 69
invoke-virtual {v0}, Landroidx/navigation/NavGraph;->getStartDestinationId()I
move-result v1
.line 70
invoke-virtual {v0}, Landroidx/navigation/NavGraph;->getStartDestinationRoute()Ljava/lang/String;
move-result-object v2
if-nez v1, :cond_1
if-eqz v2, :cond_0
goto :goto_0
.line 72
:cond_0
new-instance p0, Ljava/lang/StringBuilder;
const-string p1, "no start destination defined via app:startDestination for "
invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0}, Landroidx/navigation/NavGraph;->getDisplayName()Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
.line 71
new-instance p1, Ljava/lang/IllegalStateException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
:goto_0
const/4 v3, 0x0
if-eqz v2, :cond_2
.line 75
invoke-virtual {v0, v2, v3}, Landroidx/navigation/NavGraph;->findNode(Ljava/lang/String;Z)Landroidx/navigation/NavDestination;
move-result-object v1
goto :goto_1
.line 77
:cond_2
invoke-virtual {v0, v1, v3}, Landroidx/navigation/NavGraph;->findNode(IZ)Landroidx/navigation/NavDestination;
move-result-object v1
:goto_1
if-eqz v1, :cond_3
iget-object v0, p0, Landroidx/navigation/NavGraphNavigator;->navigatorProvider:Landroidx/navigation/NavigatorProvider;
.line 86
invoke-virtual {v1}, Landroidx/navigation/NavDestination;->getNavigatorName()Ljava/lang/String;
move-result-object v2
.line 85
invoke-virtual {v0, v2}, Landroidx/navigation/NavigatorProvider;->getNavigator(Ljava/lang/String;)Landroidx/navigation/Navigator;
move-result-object v0
.line 88
invoke-virtual {p0}, Landroidx/navigation/NavGraphNavigator;->getState()Landroidx/navigation/NavigatorState;
move-result-object p0
.line 90
invoke-virtual {v1, p1}, Landroidx/navigation/NavDestination;->addInDefaultArgs(Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p1
.line 88
invoke-virtual {p0, v1, p1}, Landroidx/navigation/NavigatorState;->createBackStackEntry(Landroidx/navigation/NavDestination;Landroid/os/Bundle;)Landroidx/navigation/NavBackStackEntry;
move-result-object p0
.line 92
invoke-static {p0}, Lkotlin/collections/CollectionsKt;->listOf(Ljava/lang/Object;)Ljava/util/List;
move-result-object p0
invoke-virtual {v0, p0, p2, p3}, Landroidx/navigation/Navigator;->navigate(Ljava/util/List;Landroidx/navigation/NavOptions;Landroidx/navigation/Navigator$Extras;)V
return-void
.line 80
:cond_3
invoke-virtual {v0}, Landroidx/navigation/NavGraph;->getStartDestDisplayName()Ljava/lang/String;
move-result-object p0
.line 81
new-instance p1, Ljava/lang/IllegalArgumentException;
.line 82
new-instance p2, Ljava/lang/StringBuilder;
const-string p3, "navigation destination "
invoke-direct {p2, p3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
const-string p2, " is not a direct child of this NavGraph"
invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
.line 81
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public bridge synthetic createDestination()Landroidx/navigation/NavDestination;
.locals 0
.line 30
invoke-virtual {p0}, Landroidx/navigation/NavGraphNavigator;->createDestination()Landroidx/navigation/NavGraph;
move-result-object p0
check-cast p0, Landroidx/navigation/NavDestination;
return-object p0
.end method
.method public createDestination()Landroidx/navigation/NavGraph;
.locals 1
.line 46
new-instance v0, Landroidx/navigation/NavGraph;
check-cast p0, Landroidx/navigation/Navigator;
invoke-direct {v0, p0}, Landroidx/navigation/NavGraph;-><init>(Landroidx/navigation/Navigator;)V
return-object v0
.end method
.method public final getBackStack()Lkotlinx/coroutines/flow/StateFlow;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lkotlinx/coroutines/flow/StateFlow<",
"Ljava/util/List<",
"Landroidx/navigation/NavBackStackEntry;",
">;>;"
}
.end annotation
.line 39
invoke-virtual {p0}, Landroidx/navigation/NavGraphNavigator;->getState()Landroidx/navigation/NavigatorState;
move-result-object p0
invoke-virtual {p0}, Landroidx/navigation/NavigatorState;->getBackStack()Lkotlinx/coroutines/flow/StateFlow;
move-result-object p0
return-object p0
.end method
.method public navigate(Ljava/util/List;Landroidx/navigation/NavOptions;Landroidx/navigation/Navigator$Extras;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Landroidx/navigation/NavBackStackEntry;",
">;",
"Landroidx/navigation/NavOptions;",
"Landroidx/navigation/Navigator$Extras;",
")V"
}
.end annotation
const-string v0, "entries"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 57
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/navigation/NavBackStackEntry;
.line 58
invoke-direct {p0, v0, p2, p3}, Landroidx/navigation/NavGraphNavigator;->navigate(Landroidx/navigation/NavBackStackEntry;Landroidx/navigation/NavOptions;Landroidx/navigation/Navigator$Extras;)V
goto :goto_0
:cond_0
return-void
.end method