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

93 lines
2.6 KiB
Smali

.class public final Landroidx/navigation/NavGraph$Companion;
.super Ljava/lang/Object;
.source "NavGraph.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/navigation/NavGraph;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u000c\u0010\u0003\u001a\u00020\u0004*\u00020\u0005H\u0007\u00a8\u0006\u0006"
}
d2 = {
"Landroidx/navigation/NavGraph$Companion;",
"",
"()V",
"findStartDestination",
"Landroidx/navigation/NavDestination;",
"Landroidx/navigation/NavGraph;",
"navigation-common_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 412
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Landroidx/navigation/NavGraph$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final findStartDestination(Landroidx/navigation/NavGraph;)Landroidx/navigation/NavDestination;
.locals 0
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string p0, "<this>"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 421
invoke-virtual {p1}, Landroidx/navigation/NavGraph;->getStartDestinationId()I
move-result p0
invoke-virtual {p1, p0}, Landroidx/navigation/NavGraph;->findNode(I)Landroidx/navigation/NavDestination;
move-result-object p0
sget-object p1, Landroidx/navigation/NavGraph$Companion$findStartDestination$1;->INSTANCE:Landroidx/navigation/NavGraph$Companion$findStartDestination$1;
check-cast p1, Lkotlin/jvm/functions/Function1;
invoke-static {p0, p1}, Lkotlin/sequences/SequencesKt;->generateSequence(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
move-result-object p0
.line 427
invoke-static {p0}, Lkotlin/sequences/SequencesKt;->last(Lkotlin/sequences/Sequence;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Landroidx/navigation/NavDestination;
return-object p0
.end method