Rabbit-R1/original r1/smali/smali_classes2/androidx/navigation/NavDestination.smali

2714 lines
73 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public Landroidx/navigation/NavDestination;
.super Ljava/lang/Object;
.source "NavDestination.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/navigation/NavDestination$ClassType;,
Landroidx/navigation/NavDestination$Companion;,
Landroidx/navigation/NavDestination$DeepLinkMatch;
}
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nNavDestination.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NavDestination.kt\nandroidx/navigation/NavDestination\n+ 2 TypedArray.kt\nandroidx/core/content/res/TypedArrayKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 5 Uri.kt\nandroidx/core/net/UriKt\n+ 6 _Sequences.kt\nkotlin/sequences/SequencesKt___SequencesKt\n+ 7 Iterators.kt\nkotlin/collections/CollectionsKt__IteratorsKt\n*L\n1#1,829:1\n232#2,3:830\n1#3:833\n288#4,2:834\n1549#4:837\n1620#4,3:838\n1855#4,2:849\n1855#4,2:852\n1855#4,2:855\n29#5:836\n1206#6,2:841\n1206#6,2:843\n1206#6,2:845\n1206#6,2:847\n32#7:851\n33#7:854\n*S KotlinDebug\n*F\n+ 1 NavDestination.kt\nandroidx/navigation/NavDestination\n*L\n191#1:830,3\n231#1:834,2\n467#1:837\n467#1:838,3\n710#1:849,2\n718#1:852,2\n722#1:855,2\n373#1:836\n686#1:841,2\n687#1:843,2\n690#1:845,2\n694#1:847,2\n715#1:851\n715#1:854\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u00a0\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0010%\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010$\n\u0002\u0008\u0003\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u0008\n\u0002\u0008\u0006\n\u0002\u0010\r\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0010\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0015\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u000c\u0008\u0016\u0018\u0000 ]2\u00020\u0001:\u0003\\]^B\u0017\u0008\u0016\u0012\u000e\u0010\u0002\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00000\u0003\u00a2\u0006\u0002\u0010\u0004B\r\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0002\u0010\u0007J\u0016\u00100\u001a\u0002012\u0006\u00102\u001a\u00020\u00062\u0006\u00103\u001a\u00020\nJ\u000e\u00104\u001a\u0002012\u0006\u00105\u001a\u00020\u0014J\u000e\u00104\u001a\u0002012\u0006\u00106\u001a\u00020\u0006J\u0014\u00107\u001a\u0004\u0018\u0001082\u0008\u00109\u001a\u0004\u0018\u000108H\u0007J\u0014\u0010:\u001a\u00020;2\n\u0008\u0002\u0010<\u001a\u0004\u0018\u00010\u0000H\u0007J\u0013\u0010=\u001a\u00020>2\u0008\u0010?\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\u001a\u0010@\u001a\u0004\u0018\u00010\u00062\u0006\u0010A\u001a\u00020B2\u0008\u0010C\u001a\u0004\u0018\u000108J\u0012\u0010D\u001a\u0004\u0018\u00010\r2\u0008\u0008\u0001\u0010\u0018\u001a\u00020\u0019J\u0010\u0010E\u001a\u00020>2\u0006\u0010F\u001a\u00020GH\u0016J\u0010\u0010E\u001a\u00020>2\u0006\u0010H\u001a\u00020IH\u0016J.\u0010J\u001a\u00020>2\u0006\u0010F\u001a\u00020\u00142\u0008\u0010K\u001a\u0004\u0018\u00010G2\u0012\u0010\u000e\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\n0\u000fH\u0002J\u001a\u0010L\u001a\u00020>2\u0006\u0010-\u001a\u00020\u00062\u0008\u0010\u000e\u001a\u0004\u0018\u000108H\u0007J\u0008\u0010M\u001a\u00020\u0019H\u0016J\u0012\u0010N\u001a\u0004\u0018\u00010O2\u0006\u0010P\u001a\u00020IH\u0017J\u0012\u0010N\u001a\u0004\u0018\u00010O2\u0006\u0010-\u001a\u00020\u0006H\u0007J\u0018\u0010Q\u001a\u0002012\u0006\u0010A\u001a\u00020B2\u0006\u0010R\u001a\u00020SH\u0017J\u0018\u0010T\u001a\u0002012\u0008\u0008\u0001\u0010U\u001a\u00020\u00192\u0006\u0010V\u001a\u00020\rJ\u001a\u0010T\u001a\u0002012\u0008\u0008\u0001\u0010U\u001a\u00020\u00192\u0008\u0008\u0001\u0010W\u001a\u00020\u0019J\u0010\u0010X\u001a\u0002012\u0008\u0008\u0001\u0010U\u001a\u00020\u0019J\u000e\u0010Y\u001a\u0002012\u0006\u00102\u001a\u00020\u0006J\u0008\u0010Z\u001a\u00020>H\u0017J\u0008\u0010[\u001a\u00020\u0006H\u0016R\u001a\u0010\u0008\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\n0\tX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u00020\r0\u000cX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001d\u0010\u000e\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\n0\u000f8F\u00a2\u0006\u0006\u001a\u0004\u0008\u0010\u0010\u0011R\u0014\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u00020\u00140\u0013X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0015\u001a\u00020\u00068WX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u0016\u0010\u0017R(\u0010\u0018\u001a\u00020\u00192\u0008\u0008\u0001\u0010\u0018\u001a\u00020\u00198G@FX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u001a\u0010\u001b\"\u0004\u0008\u001c\u0010\u001dR\u0010\u0010\u001e\u001a\u0004\u0018\u00010\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001c\u0010\u001f\u001a\u0004\u0018\u00010 X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008!\u0010\"\"\u0004\u0008#\u0010$R\u0011\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008%\u0010\u0017R(\u0010(\u001a\u0004\u0018\u00010\'2\u0008\u0010&\u001a\u0004\u0018\u00010\'@GX\u0086\u000e\u00a2
}
d2 = {
"Landroidx/navigation/NavDestination;",
"",
"navigator",
"Landroidx/navigation/Navigator;",
"(Landroidx/navigation/Navigator;)V",
"navigatorName",
"",
"(Ljava/lang/String;)V",
"_arguments",
"",
"Landroidx/navigation/NavArgument;",
"actions",
"Landroidx/collection/SparseArrayCompat;",
"Landroidx/navigation/NavAction;",
"arguments",
"",
"getArguments",
"()Ljava/util/Map;",
"deepLinks",
"",
"Landroidx/navigation/NavDeepLink;",
"displayName",
"getDisplayName",
"()Ljava/lang/String;",
"id",
"",
"getId",
"()I",
"setId",
"(I)V",
"idName",
"label",
"",
"getLabel",
"()Ljava/lang/CharSequence;",
"setLabel",
"(Ljava/lang/CharSequence;)V",
"getNavigatorName",
"<set-?>",
"Landroidx/navigation/NavGraph;",
"parent",
"getParent",
"()Landroidx/navigation/NavGraph;",
"setParent",
"(Landroidx/navigation/NavGraph;)V",
"route",
"getRoute",
"setRoute",
"addArgument",
"",
"argumentName",
"argument",
"addDeepLink",
"navDeepLink",
"uriPattern",
"addInDefaultArgs",
"Landroid/os/Bundle;",
"args",
"buildDeepLinkIds",
"",
"previousDestination",
"equals",
"",
"other",
"fillInLabel",
"context",
"Landroid/content/Context;",
"bundle",
"getAction",
"hasDeepLink",
"deepLink",
"Landroid/net/Uri;",
"deepLinkRequest",
"Landroidx/navigation/NavDeepLinkRequest;",
"hasRequiredArguments",
"uri",
"hasRoute",
"hashCode",
"matchDeepLink",
"Landroidx/navigation/NavDestination$DeepLinkMatch;",
"navDeepLinkRequest",
"onInflate",
"attrs",
"Landroid/util/AttributeSet;",
"putAction",
"actionId",
"action",
"destId",
"removeAction",
"removeArgument",
"supportsActions",
"toString",
"ClassType",
"Companion",
"DeepLinkMatch",
"navigation-common_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# static fields
.field public static final Companion:Landroidx/navigation/NavDestination$Companion;
.field private static final classes:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
# instance fields
.field private _arguments:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/navigation/NavArgument;",
">;"
}
.end annotation
.end field
.field private final actions:Landroidx/collection/SparseArrayCompat;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/collection/SparseArrayCompat<",
"Landroidx/navigation/NavAction;",
">;"
}
.end annotation
.end field
.field private final deepLinks:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Landroidx/navigation/NavDeepLink;",
">;"
}
.end annotation
.end field
.field private id:I
.field private idName:Ljava/lang/String;
.field private label:Ljava/lang/CharSequence;
.field private final navigatorName:Ljava/lang/String;
.field private parent:Landroidx/navigation/NavGraph;
.field private route:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Landroidx/navigation/NavDestination$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Landroidx/navigation/NavDestination$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Landroidx/navigation/NavDestination;->Companion:Landroidx/navigation/NavDestination$Companion;
.line 730
new-instance v0, Ljava/util/LinkedHashMap;
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
check-cast v0, Ljava/util/Map;
sput-object v0, Landroidx/navigation/NavDestination;->classes:Ljava/util/Map;
return-void
.end method
.method public constructor <init>(Landroidx/navigation/Navigator;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/navigation/Navigator<",
"+",
"Landroidx/navigation/NavDestination;",
">;)V"
}
.end annotation
const-string v0, "navigator"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 178
sget-object v0, Landroidx/navigation/NavigatorProvider;->Companion:Landroidx/navigation/NavigatorProvider$Companion;
.line 179
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p1
.line 178
invoke-virtual {v0, p1}, Landroidx/navigation/NavigatorProvider$Companion;->getNameForNavigator$navigation_common_release(Ljava/lang/Class;)Ljava/lang/String;
move-result-object p1
.line 177
invoke-direct {p0, p1}, Landroidx/navigation/NavDestination;-><init>(Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 1
const-string v0, "navigatorName"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 51
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/navigation/NavDestination;->navigatorName:Ljava/lang/String;
.line 155
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
check-cast p1, Ljava/util/List;
iput-object p1, p0, Landroidx/navigation/NavDestination;->deepLinks:Ljava/util/List;
.line 156
new-instance p1, Landroidx/collection/SparseArrayCompat;
invoke-direct {p1}, Landroidx/collection/SparseArrayCompat;-><init>()V
iput-object p1, p0, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
.line 158
new-instance p1, Ljava/util/LinkedHashMap;
invoke-direct {p1}, Ljava/util/LinkedHashMap;-><init>()V
check-cast p1, Ljava/util/Map;
iput-object p1, p0, Landroidx/navigation/NavDestination;->_arguments:Ljava/util/Map;
return-void
.end method
.method public static final synthetic access$getClasses$cp()Ljava/util/Map;
.locals 1
sget-object v0, Landroidx/navigation/NavDestination;->classes:Ljava/util/Map;
return-object v0
.end method
.method public static synthetic buildDeepLinkIds$default(Landroidx/navigation/NavDestination;Landroidx/navigation/NavDestination;ILjava/lang/Object;)[I
.locals 0
if-nez p3, :cond_1
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
const/4 p1, 0x0
.line 446
:cond_0
invoke-virtual {p0, p1}, Landroidx/navigation/NavDestination;->buildDeepLinkIds(Landroidx/navigation/NavDestination;)[I
move-result-object p0
return-object p0
:cond_1
new-instance p0, Ljava/lang/UnsupportedOperationException;
const-string p1, "Super calls with default arguments not supported in this target, function: buildDeepLinkIds"
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static final getDisplayName(Landroid/content/Context;I)Ljava/lang/String;
.locals 1
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
sget-object v0, Landroidx/navigation/NavDestination;->Companion:Landroidx/navigation/NavDestination$Companion;
invoke-virtual {v0, p0, p1}, Landroidx/navigation/NavDestination$Companion;->getDisplayName(Landroid/content/Context;I)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final getHierarchy(Landroidx/navigation/NavDestination;)Lkotlin/sequences/Sequence;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/navigation/NavDestination;",
")",
"Lkotlin/sequences/Sequence<",
"Landroidx/navigation/NavDestination;",
">;"
}
.end annotation
sget-object v0, Landroidx/navigation/NavDestination;->Companion:Landroidx/navigation/NavDestination$Companion;
invoke-virtual {v0, p0}, Landroidx/navigation/NavDestination$Companion;->getHierarchy(Landroidx/navigation/NavDestination;)Lkotlin/sequences/Sequence;
move-result-object p0
return-object p0
.end method
.method private final hasRequiredArguments(Landroidx/navigation/NavDeepLink;Landroid/net/Uri;Ljava/util/Map;)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/navigation/NavDeepLink;",
"Landroid/net/Uri;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/navigation/NavArgument;",
">;)Z"
}
.end annotation
.line 429
invoke-virtual {p1, p2, p3}, Landroidx/navigation/NavDeepLink;->getMatchingPathAndQueryArgs$navigation_common_release(Landroid/net/Uri;Ljava/util/Map;)Landroid/os/Bundle;
move-result-object p0
.line 430
new-instance p1, Landroidx/navigation/NavDestination$hasRequiredArguments$missingRequiredArguments$1;
invoke-direct {p1, p0}, Landroidx/navigation/NavDestination$hasRequiredArguments$missingRequiredArguments$1;-><init>(Landroid/os/Bundle;)V
check-cast p1, Lkotlin/jvm/functions/Function1;
invoke-static {p3, p1}, Landroidx/navigation/NavArgumentKt;->missingRequiredArguments(Ljava/util/Map;Lkotlin/jvm/functions/Function1;)Ljava/util/List;
move-result-object p0
.line 433
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z
move-result p0
return p0
.end method
.method protected static final parseClassFromName(Landroid/content/Context;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<C:",
"Ljava/lang/Object;",
">(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Ljava/lang/Class<",
"+TC;>;)",
"Ljava/lang/Class<",
"+TC;>;"
}
.end annotation
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
sget-object v0, Landroidx/navigation/NavDestination;->Companion:Landroidx/navigation/NavDestination$Companion;
invoke-virtual {v0, p0, p1, p2}, Landroidx/navigation/NavDestination$Companion;->parseClassFromName(Landroid/content/Context;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class;
move-result-object p0
return-object p0
.end method
.method public static final parseClassFromNameInternal(Landroid/content/Context;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<C:",
"Ljava/lang/Object;",
">(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Ljava/lang/Class<",
"+TC;>;)",
"Ljava/lang/Class<",
"+TC;>;"
}
.end annotation
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
sget-object v0, Landroidx/navigation/NavDestination;->Companion:Landroidx/navigation/NavDestination$Companion;
invoke-virtual {v0, p0, p1, p2}, Landroidx/navigation/NavDestination$Companion;->parseClassFromNameInternal(Landroid/content/Context;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final addArgument(Ljava/lang/String;Landroidx/navigation/NavArgument;)V
.locals 1
const-string v0, "argumentName"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "argument"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Landroidx/navigation/NavDestination;->_arguments:Ljava/util/Map;
.line 574
invoke-interface {p0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method public final addDeepLink(Landroidx/navigation/NavDeepLink;)V
.locals 3
const-string v0, "navDeepLink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 354
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v0
new-instance v1, Landroidx/navigation/NavDestination$addDeepLink$missingRequiredArguments$1;
invoke-direct {v1, p1}, Landroidx/navigation/NavDestination$addDeepLink$missingRequiredArguments$1;-><init>(Landroidx/navigation/NavDeepLink;)V
check-cast v1, Lkotlin/jvm/functions/Function1;
invoke-static {v0, v1}, Landroidx/navigation/NavArgumentKt;->missingRequiredArguments(Ljava/util/Map;Lkotlin/jvm/functions/Function1;)Ljava/util/List;
move-result-object v0
.line 357
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-eqz v1, :cond_0
iget-object p0, p0, Landroidx/navigation/NavDestination;->deepLinks:Ljava/util/List;
.line 362
invoke-interface {p0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.line 358
:cond_0
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Deep link "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p1}, Landroidx/navigation/NavDeepLink;->getUriPattern()Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string v1, " can\'t be used to open destination "
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const-string p1, ".\nFollowing required arguments are missing: "
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
.line 357
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final addDeepLink(Ljava/lang/String;)V
.locals 1
const-string v0, "uriPattern"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 309
new-instance v0, Landroidx/navigation/NavDeepLink$Builder;
invoke-direct {v0}, Landroidx/navigation/NavDeepLink$Builder;-><init>()V
invoke-virtual {v0, p1}, Landroidx/navigation/NavDeepLink$Builder;->setUriPattern(Ljava/lang/String;)Landroidx/navigation/NavDeepLink$Builder;
move-result-object p1
invoke-virtual {p1}, Landroidx/navigation/NavDeepLink$Builder;->build()Landroidx/navigation/NavDeepLink;
move-result-object p1
invoke-virtual {p0, p1}, Landroidx/navigation/NavDestination;->addDeepLink(Landroidx/navigation/NavDeepLink;)V
return-void
.end method
.method public final addInDefaultArgs(Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 4
if-nez p1, :cond_1
iget-object v0, p0, Landroidx/navigation/NavDestination;->_arguments:Ljava/util/Map;
if-eqz v0, :cond_0
.line 595
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
move-result v0
if-eqz v0, :cond_1
:cond_0
const/4 p0, 0x0
return-object p0
.line 598
:cond_1
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
iget-object v1, p0, Landroidx/navigation/NavDestination;->_arguments:Ljava/util/Map;
.line 599
invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/navigation/NavArgument;
.line 600
invoke-virtual {v2, v3, v0}, Landroidx/navigation/NavArgument;->putDefaultValue(Ljava/lang/String;Landroid/os/Bundle;)V
goto :goto_0
:cond_2
if-eqz p1, :cond_4
.line 603
invoke-virtual {v0, p1}, Landroid/os/Bundle;->putAll(Landroid/os/Bundle;)V
iget-object p0, p0, Landroidx/navigation/NavDestination;->_arguments:Ljava/util/Map;
.line 604
invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p0
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_1
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result p1
if-eqz p1, :cond_4
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/Map$Entry;
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroidx/navigation/NavArgument;
.line 605
invoke-virtual {p1, v1, v0}, Landroidx/navigation/NavArgument;->verify(Ljava/lang/String;Landroid/os/Bundle;)Z
move-result v2
if-eqz v2, :cond_3
goto :goto_1
.line 606
:cond_3
new-instance p0, Ljava/lang/StringBuilder;
const-string v0, "Wrong argument type for \'"
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
const-string v0, "\' in argument bundle. "
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p1}, Landroidx/navigation/NavArgument;->getType()Landroidx/navigation/NavType;
move-result-object p1
invoke-virtual {p1}, Landroidx/navigation/NavType;->getName()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
const-string p1, " expected."
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 605
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
return-object v0
.end method
.method public final buildDeepLinkIds()[I
.locals 2
const/4 v0, 0x0
const/4 v1, 0x1
invoke-static {p0, v0, v1, v0}, Landroidx/navigation/NavDestination;->buildDeepLinkIds$default(Landroidx/navigation/NavDestination;Landroidx/navigation/NavDestination;ILjava/lang/Object;)[I
move-result-object p0
return-object p0
.end method
.method public final buildDeepLinkIds(Landroidx/navigation/NavDestination;)[I
.locals 4
.line 447
new-instance v0, Lkotlin/collections/ArrayDeque;
invoke-direct {v0}, Lkotlin/collections/ArrayDeque;-><init>()V
.line 450
:cond_0
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v1, p0, Landroidx/navigation/NavDestination;->parent:Landroidx/navigation/NavGraph;
if-eqz p1, :cond_1
.line 453
iget-object v2, p1, Landroidx/navigation/NavDestination;->parent:Landroidx/navigation/NavGraph;
goto :goto_0
:cond_1
const/4 v2, 0x0
:goto_0
if-eqz v2, :cond_2
.line 454
iget-object v2, p1, Landroidx/navigation/NavDestination;->parent:Landroidx/navigation/NavGraph;
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget v3, p0, Landroidx/navigation/NavDestination;->id:I
invoke-virtual {v2, v3}, Landroidx/navigation/NavGraph;->findNode(I)Landroidx/navigation/NavDestination;
move-result-object v2
if-ne v2, p0, :cond_2
.line 456
invoke-virtual {v0, p0}, Lkotlin/collections/ArrayDeque;->addFirst(Ljava/lang/Object;)V
goto :goto_1
:cond_2
if-eqz v1, :cond_3
.line 459
invoke-virtual {v1}, Landroidx/navigation/NavGraph;->getStartDestinationId()I
move-result v2
iget v3, p0, Landroidx/navigation/NavDestination;->id:I
if-eq v2, v3, :cond_4
.line 460
:cond_3
invoke-virtual {v0, p0}, Lkotlin/collections/ArrayDeque;->addFirst(Ljava/lang/Object;)V
.line 462
:cond_4
invoke-static {v1, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_5
goto :goto_1
.line 465
:cond_5
move-object p0, v1
check-cast p0, Landroidx/navigation/NavDestination;
if-nez p0, :cond_0
.line 467
:goto_1
check-cast v0, Ljava/lang/Iterable;
invoke-static {v0}, Lkotlin/collections/CollectionsKt;->toList(Ljava/lang/Iterable;)Ljava/util/List;
move-result-object p0
check-cast p0, Ljava/lang/Iterable;
.line 837
new-instance p1, Ljava/util/ArrayList;
const/16 v0, 0xa
invoke-static {p0, v0}, Lkotlin/collections/CollectionsKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
move-result v0
invoke-direct {p1, v0}, Ljava/util/ArrayList;-><init>(I)V
check-cast p1, Ljava/util/Collection;
.line 838
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_2
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_6
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
.line 839
check-cast v0, Landroidx/navigation/NavDestination;
.line 467
iget v0, v0, Landroidx/navigation/NavDestination;->id:I
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
.line 839
invoke-interface {p1, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_2
.line 840
:cond_6
check-cast p1, Ljava/util/List;
.line 837
check-cast p1, Ljava/util/Collection;
.line 467
invoke-static {p1}, Lkotlin/collections/CollectionsKt;->toIntArray(Ljava/util/Collection;)[I
move-result-object p0
return-object p0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 8
const/4 v0, 0x0
if-eqz p1, :cond_a
.line 681
instance-of v1, p1, Landroidx/navigation/NavDestination;
if-nez v1, :cond_0
goto/16 :goto_6
:cond_0
iget-object v1, p0, Landroidx/navigation/NavDestination;->deepLinks:Ljava/util/List;
.line 683
check-cast v1, Ljava/lang/Iterable;
check-cast p1, Landroidx/navigation/NavDestination;
iget-object v2, p1, Landroidx/navigation/NavDestination;->deepLinks:Ljava/util/List;
check-cast v2, Ljava/lang/Iterable;
invoke-static {v1, v2}, Lkotlin/collections/CollectionsKt;->intersect(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->size()I
move-result v1
iget-object v2, p0, Landroidx/navigation/NavDestination;->deepLinks:Ljava/util/List;
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
const/4 v3, 0x1
if-ne v1, v2, :cond_1
move v1, v3
goto :goto_0
:cond_1
move v1, v0
:goto_0
iget-object v2, p0, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
.line 685
invoke-virtual {v2}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v2
iget-object v4, p1, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v4}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v4
if-ne v2, v4, :cond_6
iget-object v2, p0, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
.line 686
invoke-static {v2}, Landroidx/collection/SparseArrayKt;->valueIterator(Landroidx/collection/SparseArrayCompat;)Ljava/util/Iterator;
move-result-object v2
invoke-static {v2}, Lkotlin/sequences/SequencesKt;->asSequence(Ljava/util/Iterator;)Lkotlin/sequences/Sequence;
move-result-object v2
.line 841
invoke-interface {v2}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_2
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_3
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Landroidx/navigation/NavAction;
.line 686
iget-object v5, p1, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v5, v4}, Landroidx/collection/SparseArrayCompat;->containsValue(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_2
goto :goto_1
.line 687
:cond_3
iget-object v2, p1, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
invoke-static {v2}, Landroidx/collection/SparseArrayKt;->valueIterator(Landroidx/collection/SparseArrayCompat;)Ljava/util/Iterator;
move-result-object v2
invoke-static {v2}, Lkotlin/sequences/SequencesKt;->asSequence(Ljava/util/Iterator;)Lkotlin/sequences/Sequence;
move-result-object v2
.line 843
invoke-interface {v2}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_4
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_5
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Landroidx/navigation/NavAction;
iget-object v5, p0, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
.line 687
invoke-virtual {v5, v4}, Landroidx/collection/SparseArrayCompat;->containsValue(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_4
goto :goto_1
:cond_5
move v2, v3
goto :goto_2
:cond_6
:goto_1
move v2, v0
.line 689
:goto_2
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v4
invoke-interface {v4}, Ljava/util/Map;->size()I
move-result v4
invoke-virtual {p1}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v5
invoke-interface {v5}, Ljava/util/Map;->size()I
move-result v5
if-ne v4, v5, :cond_9
.line 690
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v4
invoke-static {v4}, Lkotlin/collections/MapsKt;->asSequence(Ljava/util/Map;)Lkotlin/sequences/Sequence;
move-result-object v4
.line 845
invoke-interface {v4}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
move-result-object v4
:goto_3
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_7
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/util/Map$Entry;
.line 691
invoke-virtual {p1}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v6
invoke-interface {v5}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v7
invoke-interface {v6, v7}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_9
.line 692
invoke-virtual {p1}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v6
invoke-interface {v5}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v7
invoke-interface {v6, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v6
invoke-interface {v5}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v5
invoke-static {v6, v5}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_9
goto :goto_3
.line 694
:cond_7
invoke-virtual {p1}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v4
invoke-static {v4}, Lkotlin/collections/MapsKt;->asSequence(Ljava/util/Map;)Lkotlin/sequences/Sequence;
move-result-object v4
.line 847
invoke-interface {v4}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
move-result-object v4
:goto_4
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_8
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/util/Map$Entry;
.line 695
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v6
invoke-interface {v5}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v7
invoke-interface {v6, v7}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_9
.line 696
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v6
invoke-interface {v5}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v7
invoke-interface {v6, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v6
invoke-interface {v5}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v5
invoke-static {v6, v5}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_9
goto :goto_4
:cond_8
move v4, v3
goto :goto_5
:cond_9
move v4, v0
:goto_5
iget v5, p0, Landroidx/navigation/NavDestination;->id:I
.line 699
iget v6, p1, Landroidx/navigation/NavDestination;->id:I
if-ne v5, v6, :cond_a
iget-object p0, p0, Landroidx/navigation/NavDestination;->route:Ljava/lang/String;
.line 700
iget-object p1, p1, Landroidx/navigation/NavDestination;->route:Ljava/lang/String;
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_a
if-eqz v1, :cond_a
if-eqz v2, :cond_a
if-eqz v4, :cond_a
move v0, v3
:cond_a
:goto_6
return v0
.end method
.method public final fillInLabel(Landroid/content/Context;Landroid/os/Bundle;)Ljava/lang/String;
.locals 7
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/navigation/NavDestination;->label:Ljava/lang/CharSequence;
const/4 v1, 0x0
if-nez v0, :cond_0
return-object v1
:cond_0
const-string v2, "\\{(.+?)\\}"
.line 633
invoke-static {v2}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
move-result-object v2
.line 634
invoke-virtual {v2, v0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object v2
.line 635
new-instance v3, Ljava/lang/StringBuffer;
invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V
.line 637
:goto_0
invoke-virtual {v2}, Ljava/util/regex/Matcher;->find()Z
move-result v4
if-eqz v4, :cond_4
const/4 v4, 0x1
.line 638
invoke-virtual {v2, v4}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object v4
if-eqz p2, :cond_3
.line 639
invoke-virtual {p2, v4}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
move-result v5
if-eqz v5, :cond_3
const-string v5, ""
.line 640
invoke-virtual {v2, v3, v5}, Ljava/util/regex/Matcher;->appendReplacement(Ljava/lang/StringBuffer;Ljava/lang/String;)Ljava/util/regex/Matcher;
if-eqz v4, :cond_1
.line 641
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v5
invoke-interface {v5, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Landroidx/navigation/NavArgument;
if-eqz v5, :cond_1
invoke-virtual {v5}, Landroidx/navigation/NavArgument;->getType()Landroidx/navigation/NavType;
move-result-object v5
goto :goto_1
:cond_1
move-object v5, v1
.line 642
:goto_1
sget-object v6, Landroidx/navigation/NavType;->ReferenceType:Landroidx/navigation/NavType;
invoke-static {v5, v6}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_2
.line 643
invoke-virtual {p2, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
move-result v4
invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v4
const-string v5, "context.getString(bundle.getInt(argName))"
invoke-static {v4, v5}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 644
invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
goto :goto_0
.line 646
:cond_2
invoke-virtual {p2, v4}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
goto :goto_0
.line 649
:cond_3
new-instance p0, Ljava/lang/IllegalArgumentException;
.line 650
new-instance p1, Ljava/lang/StringBuilder;
const-string v1, "Could not find \""
invoke-direct {p1, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string v1, "\" in "
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p1
const-string p2, " to fill label \""
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p1
const/16 p2, 0x22
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 649
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.line 654
:cond_4
invoke-virtual {v2, v3}, Ljava/util/regex/Matcher;->appendTail(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;
.line 655
invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public final getAction(I)Landroidx/navigation/NavAction;
.locals 2
iget-object v0, p0, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
.line 523
invoke-virtual {v0}, Landroidx/collection/SparseArrayCompat;->isEmpty()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_0
move-object v0, v1
goto :goto_0
:cond_0
iget-object v0, p0, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v0, p1}, Landroidx/collection/SparseArrayCompat;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/navigation/NavAction;
:goto_0
if-nez v0, :cond_1
iget-object p0, p0, Landroidx/navigation/NavDestination;->parent:Landroidx/navigation/NavGraph;
if-eqz p0, :cond_2
.line 525
invoke-virtual {p0, p1}, Landroidx/navigation/NavGraph;->getAction(I)Landroidx/navigation/NavAction;
move-result-object v1
goto :goto_1
:cond_1
move-object v1, v0
:cond_2
:goto_1
return-object v1
.end method
.method public final getArguments()Ljava/util/Map;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/navigation/NavArgument;",
">;"
}
.end annotation
iget-object p0, p0, Landroidx/navigation/NavDestination;->_arguments:Ljava/util/Map;
.line 170
invoke-static {p0}, Lkotlin/collections/MapsKt;->toMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public getDisplayName()Ljava/lang/String;
.locals 1
iget-object v0, p0, Landroidx/navigation/NavDestination;->idName:Ljava/lang/String;
if-nez v0, :cond_0
iget p0, p0, Landroidx/navigation/NavDestination;->id:I
.line 240
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
:cond_0
return-object v0
.end method
.method public final getId()I
.locals 0
iget p0, p0, Landroidx/navigation/NavDestination;->id:I
return p0
.end method
.method public final getLabel()Ljava/lang/CharSequence;
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDestination;->label:Ljava/lang/CharSequence;
return-object p0
.end method
.method public final getNavigatorName()Ljava/lang/String;
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDestination;->navigatorName:Ljava/lang/String;
return-object p0
.end method
.method public final getParent()Landroidx/navigation/NavGraph;
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDestination;->parent:Landroidx/navigation/NavGraph;
return-object p0
.end method
.method public final getRoute()Ljava/lang/String;
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDestination;->route:Ljava/lang/String;
return-object p0
.end method
.method public hasDeepLink(Landroid/net/Uri;)Z
.locals 2
const-string v0, "deepLink"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 257
new-instance v0, Landroidx/navigation/NavDeepLinkRequest;
const/4 v1, 0x0
invoke-direct {v0, p1, v1, v1}, Landroidx/navigation/NavDeepLinkRequest;-><init>(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {p0, v0}, Landroidx/navigation/NavDestination;->hasDeepLink(Landroidx/navigation/NavDeepLinkRequest;)Z
move-result p0
return p0
.end method
.method public hasDeepLink(Landroidx/navigation/NavDeepLinkRequest;)Z
.locals 1
const-string v0, "deepLinkRequest"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 275
invoke-virtual {p0, p1}, Landroidx/navigation/NavDestination;->matchDeepLink(Landroidx/navigation/NavDeepLinkRequest;)Landroidx/navigation/NavDestination$DeepLinkMatch;
move-result-object p0
if-eqz p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public final hasRoute(Ljava/lang/String;Landroid/os/Bundle;)Z
.locals 1
const-string v0, "route"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/navigation/NavDestination;->route:Ljava/lang/String;
.line 490
invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p0, 0x1
return p0
.line 494
:cond_0
invoke-virtual {p0, p1}, Landroidx/navigation/NavDestination;->matchDeepLink(Ljava/lang/String;)Landroidx/navigation/NavDestination$DeepLinkMatch;
move-result-object p1
if-eqz p1, :cond_1
.line 497
invoke-virtual {p1}, Landroidx/navigation/NavDestination$DeepLinkMatch;->getDestination()Landroidx/navigation/NavDestination;
move-result-object v0
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-nez p0, :cond_2
const/4 p0, 0x0
return p0
.line 501
:cond_2
invoke-virtual {p1, p2}, Landroidx/navigation/NavDestination$DeepLinkMatch;->hasMatchingArgs(Landroid/os/Bundle;)Z
move-result p0
return p0
.end method
.method public hashCode()I
.locals 7
iget v0, p0, Landroidx/navigation/NavDestination;->id:I
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Landroidx/navigation/NavDestination;->route:Ljava/lang/String;
const/4 v2, 0x0
if-eqz v1, :cond_0
.line 709
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
goto :goto_0
:cond_0
move v1, v2
:goto_0
add-int/2addr v0, v1
iget-object v1, p0, Landroidx/navigation/NavDestination;->deepLinks:Ljava/util/List;
.line 710
check-cast v1, Ljava/lang/Iterable;
.line 849
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_1
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_4
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/navigation/NavDeepLink;
mul-int/lit8 v0, v0, 0x1f
.line 711
invoke-virtual {v3}, Landroidx/navigation/NavDeepLink;->getUriPattern()Ljava/lang/String;
move-result-object v4
if-eqz v4, :cond_1
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
move-result v4
goto :goto_2
:cond_1
move v4, v2
:goto_2
add-int/2addr v0, v4
mul-int/lit8 v0, v0, 0x1f
.line 712
invoke-virtual {v3}, Landroidx/navigation/NavDeepLink;->getAction()Ljava/lang/String;
move-result-object v4
if-eqz v4, :cond_2
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
move-result v4
goto :goto_3
:cond_2
move v4, v2
:goto_3
add-int/2addr v0, v4
mul-int/lit8 v0, v0, 0x1f
.line 713
invoke-virtual {v3}, Landroidx/navigation/NavDeepLink;->getMimeType()Ljava/lang/String;
move-result-object v3
if-eqz v3, :cond_3
invoke-virtual {v3}, Ljava/lang/Object;->hashCode()I
move-result v3
goto :goto_4
:cond_3
move v3, v2
:goto_4
add-int/2addr v0, v3
goto :goto_1
:cond_4
iget-object v1, p0, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
.line 715
invoke-static {v1}, Landroidx/collection/SparseArrayKt;->valueIterator(Landroidx/collection/SparseArrayCompat;)Ljava/util/Iterator;
move-result-object v1
.line 851
:cond_5
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_8
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/navigation/NavAction;
mul-int/lit8 v0, v0, 0x1f
.line 716
invoke-virtual {v3}, Landroidx/navigation/NavAction;->getDestinationId()I
move-result v4
add-int/2addr v0, v4
mul-int/lit8 v0, v0, 0x1f
.line 717
invoke-virtual {v3}, Landroidx/navigation/NavAction;->getNavOptions()Landroidx/navigation/NavOptions;
move-result-object v4
if-eqz v4, :cond_6
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
move-result v4
goto :goto_5
:cond_6
move v4, v2
:goto_5
add-int/2addr v0, v4
.line 718
invoke-virtual {v3}, Landroidx/navigation/NavAction;->getDefaultArguments()Landroid/os/Bundle;
move-result-object v4
if-eqz v4, :cond_5
invoke-virtual {v4}, Landroid/os/Bundle;->keySet()Ljava/util/Set;
move-result-object v4
if-eqz v4, :cond_5
const-string v5, "keySet()"
invoke-static {v4, v5}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v4, Ljava/lang/Iterable;
.line 852
invoke-interface {v4}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v4
:goto_6
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_5
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/String;
mul-int/lit8 v0, v0, 0x1f
.line 719
invoke-virtual {v3}, Landroidx/navigation/NavAction;->getDefaultArguments()Landroid/os/Bundle;
move-result-object v6
invoke-static {v6}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
invoke-virtual {v6, v5}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v5
if-eqz v5, :cond_7
invoke-virtual {v5}, Ljava/lang/Object;->hashCode()I
move-result v5
goto :goto_7
:cond_7
move v5, v2
:goto_7
add-int/2addr v0, v5
goto :goto_6
.line 722
:cond_8
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v1
invoke-interface {v1}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v1
check-cast v1, Ljava/lang/Iterable;
.line 855
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_8
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_a
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
mul-int/lit8 v0, v0, 0x1f
.line 723
invoke-virtual {v3}, Ljava/lang/String;->hashCode()I
move-result v4
add-int/2addr v0, v4
mul-int/lit8 v0, v0, 0x1f
.line 724
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v4
invoke-interface {v4, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
if-eqz v3, :cond_9
invoke-virtual {v3}, Ljava/lang/Object;->hashCode()I
move-result v3
goto :goto_9
:cond_9
move v3, v2
:goto_9
add-int/2addr v0, v3
goto :goto_8
:cond_a
return v0
.end method
.method public matchDeepLink(Landroidx/navigation/NavDeepLinkRequest;)Landroidx/navigation/NavDestination$DeepLinkMatch;
.locals 13
const-string v0, "navDeepLinkRequest"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/navigation/NavDestination;->deepLinks:Ljava/util/List;
.line 392
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_0
return-object v1
:cond_0
iget-object v0, p0, Landroidx/navigation/NavDestination;->deepLinks:Ljava/util/List;
.line 396
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
move-object v2, v1
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_8
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/navigation/NavDeepLink;
.line 397
invoke-virtual {p1}, Landroidx/navigation/NavDeepLinkRequest;->getUri()Landroid/net/Uri;
move-result-object v4
if-eqz v4, :cond_2
.line 400
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v5
invoke-virtual {v3, v4, v5}, Landroidx/navigation/NavDeepLink;->getMatchingArguments(Landroid/net/Uri;Ljava/util/Map;)Landroid/os/Bundle;
move-result-object v5
move-object v8, v5
goto :goto_1
:cond_2
move-object v8, v1
.line 401
:goto_1
invoke-virtual {v3, v4}, Landroidx/navigation/NavDeepLink;->calculateMatchingPathSegments$navigation_common_release(Landroid/net/Uri;)I
move-result v10
.line 402
invoke-virtual {p1}, Landroidx/navigation/NavDeepLinkRequest;->getAction()Ljava/lang/String;
move-result-object v5
if-eqz v5, :cond_3
.line 404
invoke-virtual {v3}, Landroidx/navigation/NavDeepLink;->getAction()Ljava/lang/String;
move-result-object v6
invoke-static {v5, v6}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_3
const/4 v5, 0x1
goto :goto_2
:cond_3
const/4 v5, 0x0
:goto_2
move v11, v5
.line 405
invoke-virtual {p1}, Landroidx/navigation/NavDeepLinkRequest;->getMimeType()Ljava/lang/String;
move-result-object v5
const/4 v6, -0x1
if-eqz v5, :cond_4
.line 407
invoke-virtual {v3, v5}, Landroidx/navigation/NavDeepLink;->getMimeTypeMatchRating(Ljava/lang/String;)I
move-result v5
move v12, v5
goto :goto_3
:cond_4
move v12, v6
:goto_3
if-nez v8, :cond_6
if-nez v11, :cond_5
if-le v12, v6, :cond_1
.line 409
:cond_5
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->getArguments()Ljava/util/Map;
move-result-object v5
invoke-direct {p0, v3, v4, v5}, Landroidx/navigation/NavDestination;->hasRequiredArguments(Landroidx/navigation/NavDeepLink;Landroid/net/Uri;Ljava/util/Map;)Z
move-result v4
if-eqz v4, :cond_1
.line 411
:cond_6
new-instance v4, Landroidx/navigation/NavDestination$DeepLinkMatch;
.line 413
invoke-virtual {v3}, Landroidx/navigation/NavDeepLink;->isExactDeepLink()Z
move-result v9
move-object v6, v4
move-object v7, p0
.line 411
invoke-direct/range {v6 .. v12}, Landroidx/navigation/NavDestination$DeepLinkMatch;-><init>(Landroidx/navigation/NavDestination;Landroid/os/Bundle;ZIZI)V
if-eqz v2, :cond_7
.line 416
invoke-virtual {v4, v2}, Landroidx/navigation/NavDestination$DeepLinkMatch;->compareTo(Landroidx/navigation/NavDestination$DeepLinkMatch;)I
move-result v3
if-lez v3, :cond_1
:cond_7
move-object v2, v4
goto :goto_0
:cond_8
return-object v2
.end method
.method public final matchDeepLink(Ljava/lang/String;)Landroidx/navigation/NavDestination$DeepLinkMatch;
.locals 2
const-string v0, "route"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 373
sget-object v0, Landroidx/navigation/NavDeepLinkRequest$Builder;->Companion:Landroidx/navigation/NavDeepLinkRequest$Builder$Companion;
sget-object v1, Landroidx/navigation/NavDestination;->Companion:Landroidx/navigation/NavDestination$Companion;
invoke-virtual {v1, p1}, Landroidx/navigation/NavDestination$Companion;->createRoute(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 836
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object p1
const-string v1, "Uri.parse(this)"
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 373
invoke-virtual {v0, p1}, Landroidx/navigation/NavDeepLinkRequest$Builder$Companion;->fromUri(Landroid/net/Uri;)Landroidx/navigation/NavDeepLinkRequest$Builder;
move-result-object p1
invoke-virtual {p1}, Landroidx/navigation/NavDeepLinkRequest$Builder;->build()Landroidx/navigation/NavDeepLinkRequest;
move-result-object p1
.line 374
instance-of v0, p0, Landroidx/navigation/NavGraph;
if-eqz v0, :cond_0
.line 375
check-cast p0, Landroidx/navigation/NavGraph;
invoke-virtual {p0, p1}, Landroidx/navigation/NavGraph;->matchDeepLinkExcludingChildren(Landroidx/navigation/NavDeepLinkRequest;)Landroidx/navigation/NavDestination$DeepLinkMatch;
move-result-object p0
goto :goto_0
.line 377
:cond_0
invoke-virtual {p0, p1}, Landroidx/navigation/NavDestination;->matchDeepLink(Landroidx/navigation/NavDeepLinkRequest;)Landroidx/navigation/NavDestination$DeepLinkMatch;
move-result-object p0
:goto_0
return-object p0
.end method
.method public onInflate(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 2
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "attrs"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 191
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
sget-object v1, Landroidx/navigation/common/R$styleable;->Navigator:[I
invoke-virtual {v0, p2, v1}, Landroid/content/res/Resources;->obtainAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p2
const-string v0, "context.resources.obtain\u2026s, R.styleable.Navigator)"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 192
sget v0, Landroidx/navigation/common/R$styleable;->Navigator_route:I
invoke-virtual {p2, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {p0, v0}, Landroidx/navigation/NavDestination;->setRoute(Ljava/lang/String;)V
.line 194
sget v0, Landroidx/navigation/common/R$styleable;->Navigator_android_id:I
invoke-virtual {p2, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v0
if-eqz v0, :cond_0
.line 195
sget v0, Landroidx/navigation/common/R$styleable;->Navigator_android_id:I
const/4 v1, 0x0
invoke-virtual {p2, v0, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v0
invoke-virtual {p0, v0}, Landroidx/navigation/NavDestination;->setId(I)V
sget-object v0, Landroidx/navigation/NavDestination;->Companion:Landroidx/navigation/NavDestination$Companion;
iget v1, p0, Landroidx/navigation/NavDestination;->id:I
.line 196
invoke-virtual {v0, p1, v1}, Landroidx/navigation/NavDestination$Companion;->getDisplayName(Landroid/content/Context;I)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Landroidx/navigation/NavDestination;->idName:Ljava/lang/String;
.line 198
:cond_0
sget p1, Landroidx/navigation/common/R$styleable;->Navigator_android_label:I
invoke-virtual {p2, p1}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;
move-result-object p1
iput-object p1, p0, Landroidx/navigation/NavDestination;->label:Ljava/lang/CharSequence;
.line 199
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 831
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
return-void
.end method
.method public final putAction(II)V
.locals 7
.line 535
new-instance v6, Landroidx/navigation/NavAction;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x6
const/4 v5, 0x0
move-object v0, v6
move v1, p2
invoke-direct/range {v0 .. v5}, Landroidx/navigation/NavAction;-><init>(ILandroidx/navigation/NavOptions;Landroid/os/Bundle;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
invoke-virtual {p0, p1, v6}, Landroidx/navigation/NavDestination;->putAction(ILandroidx/navigation/NavAction;)V
return-void
.end method
.method public final putAction(ILandroidx/navigation/NavAction;)V
.locals 2
const-string v0, "action"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 547
invoke-virtual {p0}, Landroidx/navigation/NavDestination;->supportsActions()Z
move-result v0
if-eqz v0, :cond_1
if-eqz p1, :cond_0
iget-object p0, p0, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
.line 555
invoke-virtual {p0, p1, p2}, Landroidx/collection/SparseArrayCompat;->put(ILjava/lang/Object;)V
return-void
.line 554
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Cannot have an action with actionId 0"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.line 548
:cond_1
new-instance p2, Ljava/lang/UnsupportedOperationException;
.line 549
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Cannot add action "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, " to "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const-string p1, " as it does not support actions, indicating that it is a terminal destination in your navigation graph and will never trigger actions."
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 548
invoke-direct {p2, p0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public final removeAction(I)V
.locals 0
iget-object p0, p0, Landroidx/navigation/NavDestination;->actions:Landroidx/collection/SparseArrayCompat;
.line 564
invoke-virtual {p0, p1}, Landroidx/collection/SparseArrayCompat;->remove(I)V
return-void
.end method
.method public final removeArgument(Ljava/lang/String;)V
.locals 1
const-string v0, "argumentName"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Landroidx/navigation/NavDestination;->_arguments:Ljava/util/Map;
.line 583
invoke-interface {p0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method public final setId(I)V
.locals 0
iput p1, p0, Landroidx/navigation/NavDestination;->id:I
const/4 p1, 0x0
iput-object p1, p0, Landroidx/navigation/NavDestination;->idName:Ljava/lang/String;
return-void
.end method
.method public final setLabel(Ljava/lang/CharSequence;)V
.locals 0
iput-object p1, p0, Landroidx/navigation/NavDestination;->label:Ljava/lang/CharSequence;
return-void
.end method
.method public final setParent(Landroidx/navigation/NavGraph;)V
.locals 0
iput-object p1, p0, Landroidx/navigation/NavDestination;->parent:Landroidx/navigation/NavGraph;
return-void
.end method
.method public final setRoute(Ljava/lang/String;)V
.locals 6
if-nez p1, :cond_0
const/4 v0, 0x0
.line 224
invoke-virtual {p0, v0}, Landroidx/navigation/NavDestination;->setId(I)V
goto :goto_0
.line 226
:cond_0
move-object v0, p1
check-cast v0, Ljava/lang/CharSequence;
invoke-static {v0}, Lkotlin/text/StringsKt;->isBlank(Ljava/lang/CharSequence;)Z
move-result v0
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_3
sget-object v0, Landroidx/navigation/NavDestination;->Companion:Landroidx/navigation/NavDestination$Companion;
.line 227
invoke-virtual {v0, p1}, Landroidx/navigation/NavDestination$Companion;->createRoute(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 228
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
move-result v1
invoke-virtual {p0, v1}, Landroidx/navigation/NavDestination;->setId(I)V
.line 229
invoke-virtual {p0, v0}, Landroidx/navigation/NavDestination;->addDeepLink(Ljava/lang/String;)V
:goto_0
iget-object v0, p0, Landroidx/navigation/NavDestination;->deepLinks:Ljava/util/List;
.line 231
move-object v1, v0
check-cast v1, Ljava/util/Collection;
check-cast v0, Ljava/lang/Iterable;
.line 834
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
move-object v3, v2
check-cast v3, Landroidx/navigation/NavDeepLink;
.line 231
invoke-virtual {v3}, Landroidx/navigation/NavDeepLink;->getUriPattern()Ljava/lang/String;
move-result-object v3
sget-object v4, Landroidx/navigation/NavDestination;->Companion:Landroidx/navigation/NavDestination$Companion;
iget-object v5, p0, Landroidx/navigation/NavDestination;->route:Ljava/lang/String;
invoke-virtual {v4, v5}, Landroidx/navigation/NavDestination$Companion;->createRoute(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_1
goto :goto_1
:cond_2
const/4 v2, 0x0
:goto_1
invoke-static {v1}, Lkotlin/jvm/internal/TypeIntrinsics;->asMutableCollection(Ljava/lang/Object;)Ljava/util/Collection;
move-result-object v0
invoke-interface {v0, v2}, Ljava/util/Collection;->remove(Ljava/lang/Object;)Z
iput-object p1, p0, Landroidx/navigation/NavDestination;->route:Ljava/lang/String;
return-void
.line 226
:cond_3
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Cannot have an empty route"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public supportsActions()Z
.locals 0
const/4 p0, 0x1
return p0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 659
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 660
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "("
.line 661
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/navigation/NavDestination;->idName:Ljava/lang/String;
if-nez v1, :cond_0
const-string v1, "0x"
.line 663
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/navigation/NavDestination;->id:I
.line 664
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
.line 666
:cond_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_0
const-string v1, ")"
.line 668
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/navigation/NavDestination;->route:Ljava/lang/String;
.line 669
check-cast v1, Ljava/lang/CharSequence;
if-eqz v1, :cond_2
invoke-static {v1}, Lkotlin/text/StringsKt;->isBlank(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_1
goto :goto_1
:cond_1
const-string v1, " route="
.line 670
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/navigation/NavDestination;->route:Ljava/lang/String;
.line 671
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_2
:goto_1
iget-object v1, p0, Landroidx/navigation/NavDestination;->label:Ljava/lang/CharSequence;
if-eqz v1, :cond_3
const-string v1, " label="
.line 674
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object p0, p0, Landroidx/navigation/NavDestination;->label:Ljava/lang/CharSequence;
.line 675
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
.line 677
:cond_3
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
const-string v0, "sb.toString()"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method