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

1621 lines
47 KiB
Smali

.class public final Landroidx/navigation/NavInflater;
.super Ljava/lang/Object;
.source "NavInflater.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/navigation/NavInflater$Companion;
}
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nNavInflater.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NavInflater.kt\nandroidx/navigation/NavInflater\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 TypedArray.kt\nandroidx/core/content/res/TypedArrayKt\n+ 4 Context.kt\nandroidx/core/content/ContextKt\n*L\n1#1,351:1\n1#2:352\n232#3,3:353\n232#3,3:356\n232#3,3:359\n232#3,3:362\n55#4,6:365\n*S KotlinDebug\n*F\n+ 1 NavInflater.kt\nandroidx/navigation/NavInflater\n*L\n109#1:353,3\n127#1:356,3\n142#1:359,3\n247#1:362,3\n284#1:365,6\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000X\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u0018\u0000 \u001e2\u00020\u0001:\u0001\u001eB\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0002\u0010\u0006J(\u0010\u0007\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0010H\u0002J\u0012\u0010\u0007\u001a\u00020\u00112\u0008\u0008\u0001\u0010\u000f\u001a\u00020\u0010H\u0007J0\u0010\u0012\u001a\u00020\u00132\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u0014\u001a\u00020\u00082\u0006\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\u000f\u001a\u00020\u0010H\u0002J \u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000f\u001a\u00020\u0010H\u0002J(\u0010\u0019\u001a\u00020\u00132\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u001a\u001a\u00020\u001b2\u0006\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0010H\u0002J(\u0010\u001c\u001a\u00020\u00132\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u0014\u001a\u00020\u00082\u0006\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0010H\u0002J \u0010\u001d\u001a\u00020\u00132\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u0014\u001a\u00020\u00082\u0006\u0010\r\u001a\u00020\u000eH\u0002R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u001f"
}
d2 = {
"Landroidx/navigation/NavInflater;",
"",
"context",
"Landroid/content/Context;",
"navigatorProvider",
"Landroidx/navigation/NavigatorProvider;",
"(Landroid/content/Context;Landroidx/navigation/NavigatorProvider;)V",
"inflate",
"Landroidx/navigation/NavDestination;",
"res",
"Landroid/content/res/Resources;",
"parser",
"Landroid/content/res/XmlResourceParser;",
"attrs",
"Landroid/util/AttributeSet;",
"graphResId",
"",
"Landroidx/navigation/NavGraph;",
"inflateAction",
"",
"dest",
"inflateArgument",
"Landroidx/navigation/NavArgument;",
"a",
"Landroid/content/res/TypedArray;",
"inflateArgumentForBundle",
"bundle",
"Landroid/os/Bundle;",
"inflateArgumentForDestination",
"inflateDeepLink",
"Companion",
"navigation-runtime_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# static fields
.field public static final APPLICATION_ID_PLACEHOLDER:Ljava/lang/String; = "${applicationId}"
.field public static final Companion:Landroidx/navigation/NavInflater$Companion;
.field private static final TAG_ACTION:Ljava/lang/String; = "action"
.field private static final TAG_ARGUMENT:Ljava/lang/String; = "argument"
.field private static final TAG_DEEP_LINK:Ljava/lang/String; = "deepLink"
.field private static final TAG_INCLUDE:Ljava/lang/String; = "include"
.field private static final sTmpValue:Ljava/lang/ThreadLocal;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ThreadLocal<",
"Landroid/util/TypedValue;",
">;"
}
.end annotation
.end field
# instance fields
.field private final context:Landroid/content/Context;
.field private final navigatorProvider:Landroidx/navigation/NavigatorProvider;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Landroidx/navigation/NavInflater$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Landroidx/navigation/NavInflater$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Landroidx/navigation/NavInflater;->Companion:Landroidx/navigation/NavInflater$Companion;
.line 336
new-instance v0, Ljava/lang/ThreadLocal;
invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V
sput-object v0, Landroidx/navigation/NavInflater;->sTmpValue:Ljava/lang/ThreadLocal;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroidx/navigation/NavigatorProvider;)V
.locals 1
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "navigatorProvider"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 39
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/navigation/NavInflater;->context:Landroid/content/Context;
iput-object p2, p0, Landroidx/navigation/NavInflater;->navigatorProvider:Landroidx/navigation/NavigatorProvider;
return-void
.end method
.method private final inflate(Landroid/content/res/Resources;Landroid/content/res/XmlResourceParser;Landroid/util/AttributeSet;I)Landroidx/navigation/NavDestination;
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/xmlpull/v1/XmlPullParserException;,
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Landroidx/navigation/NavInflater;->navigatorProvider:Landroidx/navigation/NavigatorProvider;
.line 86
invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->getName()Ljava/lang/String;
move-result-object v1
const-string v2, "parser.name"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, v1}, Landroidx/navigation/NavigatorProvider;->getNavigator(Ljava/lang/String;)Landroidx/navigation/Navigator;
move-result-object v0
.line 87
invoke-virtual {v0}, Landroidx/navigation/Navigator;->createDestination()Landroidx/navigation/NavDestination;
move-result-object v0
iget-object v1, p0, Landroidx/navigation/NavInflater;->context:Landroid/content/Context;
.line 88
invoke-virtual {v0, v1, p3}, Landroidx/navigation/NavDestination;->onInflate(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 89
invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->getDepth()I
move-result v1
const/4 v7, 0x1
add-int/lit8 v8, v1, 0x1
.line 92
:cond_0
:goto_0
invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->next()I
move-result v1
if-eq v1, v7, :cond_8
.line 93
invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->getDepth()I
move-result v2
if-ge v2, v8, :cond_1
const/4 v3, 0x3
if-eq v1, v3, :cond_8
:cond_1
const/4 v3, 0x2
if-eq v1, v3, :cond_2
goto :goto_0
:cond_2
if-le v2, v8, :cond_3
goto :goto_0
.line 101
:cond_3
invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->getName()Ljava/lang/String;
move-result-object v1
const-string v2, "argument"
.line 102
invoke-static {v2, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_4
.line 103
invoke-direct {p0, p1, v0, p3, p4}, Landroidx/navigation/NavInflater;->inflateArgumentForDestination(Landroid/content/res/Resources;Landroidx/navigation/NavDestination;Landroid/util/AttributeSet;I)V
goto :goto_0
:cond_4
const-string v2, "deepLink"
.line 104
invoke-static {v2, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_5
.line 105
invoke-direct {p0, p1, v0, p3}, Landroidx/navigation/NavInflater;->inflateDeepLink(Landroid/content/res/Resources;Landroidx/navigation/NavDestination;Landroid/util/AttributeSet;)V
goto :goto_0
:cond_5
const-string v2, "action"
.line 106
invoke-static {v2, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_6
move-object v1, p0
move-object v2, p1
move-object v3, v0
move-object v4, p3
move-object v5, p2
move v6, p4
.line 107
invoke-direct/range {v1 .. v6}, Landroidx/navigation/NavInflater;->inflateAction(Landroid/content/res/Resources;Landroidx/navigation/NavDestination;Landroid/util/AttributeSet;Landroid/content/res/XmlResourceParser;I)V
goto :goto_0
:cond_6
const-string v2, "include"
.line 108
invoke-static {v2, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_7
instance-of v1, v0, Landroidx/navigation/NavGraph;
if-eqz v1, :cond_7
.line 109
sget-object v1, Landroidx/navigation/R$styleable;->NavInclude:[I
invoke-virtual {p1, p3, v1}, Landroid/content/res/Resources;->obtainAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object v1
const-string v2, "res.obtainAttributes(att\u2026n.R.styleable.NavInclude)"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 110
sget v2, Landroidx/navigation/R$styleable;->NavInclude_graph:I
const/4 v3, 0x0
invoke-virtual {v1, v2, v3}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v2
.line 111
move-object v3, v0
check-cast v3, Landroidx/navigation/NavGraph;
invoke-virtual {p0, v2}, Landroidx/navigation/NavInflater;->inflate(I)Landroidx/navigation/NavGraph;
move-result-object v2
check-cast v2, Landroidx/navigation/NavDestination;
invoke-virtual {v3, v2}, Landroidx/navigation/NavGraph;->addDestination(Landroidx/navigation/NavDestination;)V
.line 112
sget-object v2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 354
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
goto :goto_0
.line 113
:cond_7
instance-of v1, v0, Landroidx/navigation/NavGraph;
if-eqz v1, :cond_0
.line 114
move-object v1, v0
check-cast v1, Landroidx/navigation/NavGraph;
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/navigation/NavInflater;->inflate(Landroid/content/res/Resources;Landroid/content/res/XmlResourceParser;Landroid/util/AttributeSet;I)Landroidx/navigation/NavDestination;
move-result-object v2
invoke-virtual {v1, v2}, Landroidx/navigation/NavGraph;->addDestination(Landroidx/navigation/NavDestination;)V
goto/16 :goto_0
:cond_8
return-object v0
.end method
.method private final inflateAction(Landroid/content/res/Resources;Landroidx/navigation/NavDestination;Landroid/util/AttributeSet;Landroid/content/res/XmlResourceParser;I)V
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Lorg/xmlpull/v1/XmlPullParserException;
}
.end annotation
iget-object v0, p0, Landroidx/navigation/NavInflater;->context:Landroid/content/Context;
.line 284
sget-object v1, Landroidx/navigation/common/R$styleable;->NavAction:[I
const-string v2, "NavAction"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v2, 0x0
.line 369
invoke-virtual {v0, p3, v1, v2, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object v0
.line 285
sget v1, Landroidx/navigation/common/R$styleable;->NavAction_android_id:I
invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v1
.line 286
sget v3, Landroidx/navigation/common/R$styleable;->NavAction_destination:I
invoke-virtual {v0, v3, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v5
.line 287
new-instance v3, Landroidx/navigation/NavAction;
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x6
const/4 v9, 0x0
move-object v4, v3
invoke-direct/range {v4 .. v9}, Landroidx/navigation/NavAction;-><init>(ILandroidx/navigation/NavOptions;Landroid/os/Bundle;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.line 288
new-instance v4, Landroidx/navigation/NavOptions$Builder;
invoke-direct {v4}, Landroidx/navigation/NavOptions$Builder;-><init>()V
.line 289
sget v5, Landroidx/navigation/common/R$styleable;->NavAction_launchSingleTop:I
invoke-virtual {v0, v5, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v5
invoke-virtual {v4, v5}, Landroidx/navigation/NavOptions$Builder;->setLaunchSingleTop(Z)Landroidx/navigation/NavOptions$Builder;
.line 290
sget v5, Landroidx/navigation/common/R$styleable;->NavAction_restoreState:I
invoke-virtual {v0, v5, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v5
invoke-virtual {v4, v5}, Landroidx/navigation/NavOptions$Builder;->setRestoreState(Z)Landroidx/navigation/NavOptions$Builder;
.line 292
sget v5, Landroidx/navigation/common/R$styleable;->NavAction_popUpTo:I
const/4 v6, -0x1
invoke-virtual {v0, v5, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v5
.line 293
sget v7, Landroidx/navigation/common/R$styleable;->NavAction_popUpToInclusive:I
invoke-virtual {v0, v7, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v7
.line 294
sget v8, Landroidx/navigation/common/R$styleable;->NavAction_popUpToSaveState:I
invoke-virtual {v0, v8, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v2
.line 291
invoke-virtual {v4, v5, v7, v2}, Landroidx/navigation/NavOptions$Builder;->setPopUpTo(IZZ)Landroidx/navigation/NavOptions$Builder;
.line 296
sget v2, Landroidx/navigation/common/R$styleable;->NavAction_enterAnim:I
invoke-virtual {v0, v2, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v2
invoke-virtual {v4, v2}, Landroidx/navigation/NavOptions$Builder;->setEnterAnim(I)Landroidx/navigation/NavOptions$Builder;
.line 297
sget v2, Landroidx/navigation/common/R$styleable;->NavAction_exitAnim:I
invoke-virtual {v0, v2, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v2
invoke-virtual {v4, v2}, Landroidx/navigation/NavOptions$Builder;->setExitAnim(I)Landroidx/navigation/NavOptions$Builder;
.line 298
sget v2, Landroidx/navigation/common/R$styleable;->NavAction_popEnterAnim:I
invoke-virtual {v0, v2, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v2
invoke-virtual {v4, v2}, Landroidx/navigation/NavOptions$Builder;->setPopEnterAnim(I)Landroidx/navigation/NavOptions$Builder;
.line 299
sget v2, Landroidx/navigation/common/R$styleable;->NavAction_popExitAnim:I
invoke-virtual {v0, v2, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v2
invoke-virtual {v4, v2}, Landroidx/navigation/NavOptions$Builder;->setPopExitAnim(I)Landroidx/navigation/NavOptions$Builder;
.line 300
invoke-virtual {v4}, Landroidx/navigation/NavOptions$Builder;->build()Landroidx/navigation/NavOptions;
move-result-object v2
invoke-virtual {v3, v2}, Landroidx/navigation/NavAction;->setNavOptions(Landroidx/navigation/NavOptions;)V
.line 301
new-instance v2, Landroid/os/Bundle;
invoke-direct {v2}, Landroid/os/Bundle;-><init>()V
.line 302
invoke-interface {p4}, Landroid/content/res/XmlResourceParser;->getDepth()I
move-result v4
const/4 v5, 0x1
add-int/2addr v4, v5
.line 305
:cond_0
:goto_0
invoke-interface {p4}, Landroid/content/res/XmlResourceParser;->next()I
move-result v6
if-eq v6, v5, :cond_4
.line 306
invoke-interface {p4}, Landroid/content/res/XmlResourceParser;->getDepth()I
move-result v7
if-ge v7, v4, :cond_1
const/4 v8, 0x3
if-eq v6, v8, :cond_4
:cond_1
const/4 v8, 0x2
if-eq v6, v8, :cond_2
goto :goto_0
:cond_2
if-le v7, v4, :cond_3
goto :goto_0
.line 314
:cond_3
invoke-interface {p4}, Landroid/content/res/XmlResourceParser;->getName()Ljava/lang/String;
move-result-object v6
const-string v7, "argument"
.line 315
invoke-static {v7, v6}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_0
.line 316
invoke-direct {p0, p1, v2, p3, p5}, Landroidx/navigation/NavInflater;->inflateArgumentForBundle(Landroid/content/res/Resources;Landroid/os/Bundle;Landroid/util/AttributeSet;I)V
goto :goto_0
.line 319
:cond_4
invoke-virtual {v2}, Landroid/os/Bundle;->isEmpty()Z
move-result p0
if-nez p0, :cond_5
.line 320
invoke-virtual {v3, v2}, Landroidx/navigation/NavAction;->setDefaultArguments(Landroid/os/Bundle;)V
.line 322
:cond_5
invoke-virtual {p2, v1, v3}, Landroidx/navigation/NavDestination;->putAction(ILandroidx/navigation/NavAction;)V
.line 369
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
return-void
.end method
.method private final inflateArgument(Landroid/content/res/TypedArray;Landroid/content/res/Resources;I)Landroidx/navigation/NavArgument;
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/xmlpull/v1/XmlPullParserException;
}
.end annotation
.line 154
new-instance p0, Landroidx/navigation/NavArgument$Builder;
invoke-direct {p0}, Landroidx/navigation/NavArgument$Builder;-><init>()V
.line 155
sget v0, Landroidx/navigation/common/R$styleable;->NavArgument_nullable:I
const/4 v1, 0x0
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v0
invoke-virtual {p0, v0}, Landroidx/navigation/NavArgument$Builder;->setIsNullable(Z)Landroidx/navigation/NavArgument$Builder;
sget-object v0, Landroidx/navigation/NavInflater;->sTmpValue:Ljava/lang/ThreadLocal;
.line 156
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/util/TypedValue;
if-nez v2, :cond_0
.line 158
new-instance v2, Landroid/util/TypedValue;
invoke-direct {v2}, Landroid/util/TypedValue;-><init>()V
.line 159
invoke-virtual {v0, v2}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
.line 163
:cond_0
sget v0, Landroidx/navigation/common/R$styleable;->NavArgument_argType:I
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v7
const/4 v0, 0x0
if-eqz v7, :cond_1
.line 165
sget-object v3, Landroidx/navigation/NavType;->Companion:Landroidx/navigation/NavType$Companion;
invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getResourcePackageName(I)Ljava/lang/String;
move-result-object p3
invoke-virtual {v3, v7, p3}, Landroidx/navigation/NavType$Companion;->fromArgType(Ljava/lang/String;Ljava/lang/String;)Landroidx/navigation/NavType;
move-result-object p3
move-object v5, p3
goto :goto_0
:cond_1
move-object v5, v0
.line 167
:goto_0
sget p3, Landroidx/navigation/common/R$styleable;->NavArgument_android_defaultValue:I
invoke-virtual {p1, p3, v2}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z
move-result p3
if-eqz p3, :cond_10
.line 168
sget-object p3, Landroidx/navigation/NavType;->ReferenceType:Landroidx/navigation/NavType;
const-string v0, "\' for "
const-string v3, "unsupported value \'"
const/16 v4, 0x10
if-ne v5, p3, :cond_4
.line 169
iget p1, v2, Landroid/util/TypedValue;->resourceId:I
if-eqz p1, :cond_2
.line 170
iget v1, v2, Landroid/util/TypedValue;->resourceId:I
goto :goto_1
.line 171
:cond_2
iget p1, v2, Landroid/util/TypedValue;->type:I
if-ne p1, v4, :cond_3
iget p1, v2, Landroid/util/TypedValue;->data:I
if-nez p1, :cond_3
.line 175
:goto_1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
goto/16 :goto_2
:cond_3
new-instance p0, Lorg/xmlpull/v1/XmlPullParserException;
.line 176
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p2, v2, Landroid/util/TypedValue;->string:Ljava/lang/CharSequence;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {v5}, Landroidx/navigation/NavType;->getName()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string p2, ". Must be a reference to a resource."
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 175
invoke-direct {p0, p1}, Lorg/xmlpull/v1/XmlPullParserException;-><init>(Ljava/lang/String;)V
throw p0
.line 180
:cond_4
iget p3, v2, Landroid/util/TypedValue;->resourceId:I
if-eqz p3, :cond_6
if-nez v5, :cond_5
.line 182
sget-object v5, Landroidx/navigation/NavType;->ReferenceType:Landroidx/navigation/NavType;
.line 183
iget p1, v2, Landroid/util/TypedValue;->resourceId:I
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
goto/16 :goto_2
.line 185
:cond_5
new-instance p0, Lorg/xmlpull/v1/XmlPullParserException;
.line 186
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p2, v2, Landroid/util/TypedValue;->string:Ljava/lang/CharSequence;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {v5}, Landroidx/navigation/NavType;->getName()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string p2, ". You must use a \""
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
.line 187
sget-object p2, Landroidx/navigation/NavType;->ReferenceType:Landroidx/navigation/NavType;
invoke-virtual {p2}, Landroidx/navigation/NavType;->getName()Ljava/lang/String;
move-result-object p2
.line 186
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string p2, "\" type to reference other resources."
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 185
invoke-direct {p0, p1}, Lorg/xmlpull/v1/XmlPullParserException;-><init>(Ljava/lang/String;)V
throw p0
.line 190
:cond_6
sget-object p3, Landroidx/navigation/NavType;->StringType:Landroidx/navigation/NavType;
if-ne v5, p3, :cond_7
.line 191
sget p2, Landroidx/navigation/common/R$styleable;->NavArgument_android_defaultValue:I
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v0
goto/16 :goto_2
.line 193
:cond_7
iget p1, v2, Landroid/util/TypedValue;->type:I
const/4 p3, 0x3
if-eq p1, p3, :cond_e
const/4 p3, 0x4
if-eq p1, p3, :cond_d
const/4 p3, 0x5
if-eq p1, p3, :cond_c
const/16 p2, 0x12
if-eq p1, p2, :cond_a
.line 216
iget p1, v2, Landroid/util/TypedValue;->type:I
if-lt p1, v4, :cond_9
.line 217
iget p1, v2, Landroid/util/TypedValue;->type:I
const/16 p2, 0x1f
if-gt p1, p2, :cond_9
.line 219
sget-object p1, Landroidx/navigation/NavType;->FloatType:Landroidx/navigation/NavType;
if-ne v5, p1, :cond_8
sget-object v3, Landroidx/navigation/NavInflater;->Companion:Landroidx/navigation/NavInflater$Companion;
.line 221
sget-object v6, Landroidx/navigation/NavType;->FloatType:Landroidx/navigation/NavType;
const-string v8, "float"
move-object v4, v2
.line 220
invoke-virtual/range {v3 .. v8}, Landroidx/navigation/NavInflater$Companion;->checkNavType$navigation_runtime_release(Landroid/util/TypedValue;Landroidx/navigation/NavType;Landroidx/navigation/NavType;Ljava/lang/String;Ljava/lang/String;)Landroidx/navigation/NavType;
move-result-object v5
.line 223
iget p1, v2, Landroid/util/TypedValue;->data:I
int-to-float p1, p1
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
goto/16 :goto_2
:cond_8
sget-object v3, Landroidx/navigation/NavInflater;->Companion:Landroidx/navigation/NavInflater$Companion;
.line 226
sget-object v6, Landroidx/navigation/NavType;->IntType:Landroidx/navigation/NavType;
const-string v8, "integer"
move-object v4, v2
.line 225
invoke-virtual/range {v3 .. v8}, Landroidx/navigation/NavInflater$Companion;->checkNavType$navigation_runtime_release(Landroid/util/TypedValue;Landroidx/navigation/NavType;Landroidx/navigation/NavType;Ljava/lang/String;Ljava/lang/String;)Landroidx/navigation/NavType;
move-result-object v5
.line 228
iget p1, v2, Landroid/util/TypedValue;->data:I
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
goto :goto_2
.line 231
:cond_9
new-instance p0, Lorg/xmlpull/v1/XmlPullParserException;
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "unsupported argument type "
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget p2, v2, Landroid/util/TypedValue;->type:I
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Lorg/xmlpull/v1/XmlPullParserException;-><init>(Ljava/lang/String;)V
throw p0
:cond_a
sget-object v3, Landroidx/navigation/NavInflater;->Companion:Landroidx/navigation/NavInflater$Companion;
.line 212
sget-object v6, Landroidx/navigation/NavType;->BoolType:Landroidx/navigation/NavType;
const-string v8, "boolean"
move-object v4, v2
invoke-virtual/range {v3 .. v8}, Landroidx/navigation/NavInflater$Companion;->checkNavType$navigation_runtime_release(Landroid/util/TypedValue;Landroidx/navigation/NavType;Landroidx/navigation/NavType;Ljava/lang/String;Ljava/lang/String;)Landroidx/navigation/NavType;
move-result-object v5
.line 213
iget p1, v2, Landroid/util/TypedValue;->data:I
if-eqz p1, :cond_b
const/4 v1, 0x1
:cond_b
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
goto :goto_2
:cond_c
sget-object v3, Landroidx/navigation/NavInflater;->Companion:Landroidx/navigation/NavInflater$Companion;
.line 203
sget-object v6, Landroidx/navigation/NavType;->IntType:Landroidx/navigation/NavType;
const-string v8, "dimension"
move-object v4, v2
.line 202
invoke-virtual/range {v3 .. v8}, Landroidx/navigation/NavInflater$Companion;->checkNavType$navigation_runtime_release(Landroid/util/TypedValue;Landroidx/navigation/NavType;Landroidx/navigation/NavType;Ljava/lang/String;Ljava/lang/String;)Landroidx/navigation/NavType;
move-result-object v5
.line 205
invoke-virtual {p2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object p1
invoke-virtual {v2, p1}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result p1
float-to-int p1, p1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
goto :goto_2
:cond_d
sget-object v3, Landroidx/navigation/NavInflater;->Companion:Landroidx/navigation/NavInflater$Companion;
.line 208
sget-object v6, Landroidx/navigation/NavType;->FloatType:Landroidx/navigation/NavType;
const-string v8, "float"
move-object v4, v2
invoke-virtual/range {v3 .. v8}, Landroidx/navigation/NavInflater$Companion;->checkNavType$navigation_runtime_release(Landroid/util/TypedValue;Landroidx/navigation/NavType;Landroidx/navigation/NavType;Ljava/lang/String;Ljava/lang/String;)Landroidx/navigation/NavType;
move-result-object v5
.line 209
invoke-virtual {v2}, Landroid/util/TypedValue;->getFloat()F
move-result p1
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
goto :goto_2
.line 195
:cond_e
iget-object p1, v2, Landroid/util/TypedValue;->string:Ljava/lang/CharSequence;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
if-nez v5, :cond_f
.line 197
sget-object p2, Landroidx/navigation/NavType;->Companion:Landroidx/navigation/NavType$Companion;
invoke-virtual {p2, p1}, Landroidx/navigation/NavType$Companion;->inferFromValue(Ljava/lang/String;)Landroidx/navigation/NavType;
move-result-object v5
.line 199
:cond_f
invoke-virtual {v5, p1}, Landroidx/navigation/NavType;->parseValue(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
:cond_10
:goto_2
if-eqz v0, :cond_11
.line 237
invoke-virtual {p0, v0}, Landroidx/navigation/NavArgument$Builder;->setDefaultValue(Ljava/lang/Object;)Landroidx/navigation/NavArgument$Builder;
:cond_11
if-eqz v5, :cond_12
.line 240
invoke-virtual {p0, v5}, Landroidx/navigation/NavArgument$Builder;->setType(Landroidx/navigation/NavType;)Landroidx/navigation/NavArgument$Builder;
.line 242
:cond_12
invoke-virtual {p0}, Landroidx/navigation/NavArgument$Builder;->build()Landroidx/navigation/NavArgument;
move-result-object p0
return-object p0
.end method
.method private final inflateArgumentForBundle(Landroid/content/res/Resources;Landroid/os/Bundle;Landroid/util/AttributeSet;I)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/xmlpull/v1/XmlPullParserException;
}
.end annotation
.line 142
sget-object v0, Landroidx/navigation/common/R$styleable;->NavArgument:[I
invoke-virtual {p1, p3, v0}, Landroid/content/res/Resources;->obtainAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p3
const-string v0, "res.obtainAttributes(att\u2026 R.styleable.NavArgument)"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 143
sget v0, Landroidx/navigation/common/R$styleable;->NavArgument_android_name:I
invoke-virtual {p3, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_1
const-string v1, "array.getString(R.stylea\u2026uments must have a name\")"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 145
invoke-direct {p0, p3, p1, p4}, Landroidx/navigation/NavInflater;->inflateArgument(Landroid/content/res/TypedArray;Landroid/content/res/Resources;I)Landroidx/navigation/NavArgument;
move-result-object p0
.line 146
invoke-virtual {p0}, Landroidx/navigation/NavArgument;->isDefaultValuePresent()Z
move-result p1
if-eqz p1, :cond_0
.line 147
invoke-virtual {p0, v0, p2}, Landroidx/navigation/NavArgument;->putDefaultValue(Ljava/lang/String;Landroid/os/Bundle;)V
.line 149
:cond_0
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 360
invoke-virtual {p3}, Landroid/content/res/TypedArray;->recycle()V
return-void
.line 144
:cond_1
new-instance p0, Lorg/xmlpull/v1/XmlPullParserException;
const-string p1, "Arguments must have a name"
invoke-direct {p0, p1}, Lorg/xmlpull/v1/XmlPullParserException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method private final inflateArgumentForDestination(Landroid/content/res/Resources;Landroidx/navigation/NavDestination;Landroid/util/AttributeSet;I)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/xmlpull/v1/XmlPullParserException;
}
.end annotation
.line 127
sget-object v0, Landroidx/navigation/common/R$styleable;->NavArgument:[I
invoke-virtual {p1, p3, v0}, Landroid/content/res/Resources;->obtainAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p3
const-string v0, "res.obtainAttributes(att\u2026 R.styleable.NavArgument)"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 128
sget v0, Landroidx/navigation/common/R$styleable;->NavArgument_android_name:I
invoke-virtual {p3, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_0
const-string v1, "array.getString(R.stylea\u2026uments must have a name\")"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 130
invoke-direct {p0, p3, p1, p4}, Landroidx/navigation/NavInflater;->inflateArgument(Landroid/content/res/TypedArray;Landroid/content/res/Resources;I)Landroidx/navigation/NavArgument;
move-result-object p0
.line 131
invoke-virtual {p2, v0, p0}, Landroidx/navigation/NavDestination;->addArgument(Ljava/lang/String;Landroidx/navigation/NavArgument;)V
.line 132
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 357
invoke-virtual {p3}, Landroid/content/res/TypedArray;->recycle()V
return-void
.line 129
:cond_0
new-instance p0, Lorg/xmlpull/v1/XmlPullParserException;
const-string p1, "Arguments must have a name"
invoke-direct {p0, p1}, Lorg/xmlpull/v1/XmlPullParserException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method private final inflateDeepLink(Landroid/content/res/Resources;Landroidx/navigation/NavDestination;Landroid/util/AttributeSet;)V
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/xmlpull/v1/XmlPullParserException;
}
.end annotation
.line 247
sget-object v0, Landroidx/navigation/common/R$styleable;->NavDeepLink:[I
invoke-virtual {p1, p3, v0}, Landroid/content/res/Resources;->obtainAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p1
const-string p3, "res.obtainAttributes(att\u2026 R.styleable.NavDeepLink)"
invoke-static {p1, p3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 248
sget p3, Landroidx/navigation/common/R$styleable;->NavDeepLink_uri:I
invoke-virtual {p1, p3}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v0
.line 249
sget p3, Landroidx/navigation/common/R$styleable;->NavDeepLink_action:I
invoke-virtual {p1, p3}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object p3
.line 250
sget v1, Landroidx/navigation/common/R$styleable;->NavDeepLink_mimeType:I
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v7
.line 251
move-object v1, v0
check-cast v1, Ljava/lang/CharSequence;
if-eqz v1, :cond_0
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
move-result v1
if-nez v1, :cond_2
:cond_0
move-object v1, p3
check-cast v1, Ljava/lang/CharSequence;
if-eqz v1, :cond_1
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
move-result v1
if-nez v1, :cond_2
:cond_1
move-object v1, v7
check-cast v1, Ljava/lang/CharSequence;
if-eqz v1, :cond_7
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
move-result v1
if-eqz v1, :cond_7
.line 257
:cond_2
new-instance v8, Landroidx/navigation/NavDeepLink$Builder;
invoke-direct {v8}, Landroidx/navigation/NavDeepLink$Builder;-><init>()V
const-string v9, "context.packageName"
if-eqz v0, :cond_3
const-string v1, "${applicationId}"
iget-object v2, p0, Landroidx/navigation/NavInflater;->context:Landroid/content/Context;
.line 259
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v2
invoke-static {v2, v9}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v3, 0x0
const/4 v4, 0x4
const/4 v5, 0x0
invoke-static/range {v0 .. v5}, Lkotlin/text/StringsKt;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v8, v0}, Landroidx/navigation/NavDeepLink$Builder;->setUriPattern(Ljava/lang/String;)Landroidx/navigation/NavDeepLink$Builder;
.line 261
:cond_3
move-object v0, p3
check-cast v0, Ljava/lang/CharSequence;
if-eqz v0, :cond_5
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v0
if-nez v0, :cond_4
goto :goto_0
:cond_4
const-string v2, "${applicationId}"
iget-object v0, p0, Landroidx/navigation/NavInflater;->context:Landroid/content/Context;
.line 262
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v3
invoke-static {v3, v9}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v4, 0x0
const/4 v5, 0x4
const/4 v6, 0x0
move-object v1, p3
invoke-static/range {v1 .. v6}, Lkotlin/text/StringsKt;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
move-result-object p3
invoke-virtual {v8, p3}, Landroidx/navigation/NavDeepLink$Builder;->setAction(Ljava/lang/String;)Landroidx/navigation/NavDeepLink$Builder;
:cond_5
:goto_0
if-eqz v7, :cond_6
const-string v3, "${applicationId}"
iget-object p0, p0, Landroidx/navigation/NavInflater;->context:Landroid/content/Context;
.line 268
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v4
invoke-static {v4, v9}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v5, 0x0
const/4 v6, 0x4
const/4 p0, 0x0
move-object v2, v7
move-object v7, p0
.line 266
invoke-static/range {v2 .. v7}, Lkotlin/text/StringsKt;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
move-result-object p0
.line 265
invoke-virtual {v8, p0}, Landroidx/navigation/NavDeepLink$Builder;->setMimeType(Ljava/lang/String;)Landroidx/navigation/NavDeepLink$Builder;
.line 272
:cond_6
invoke-virtual {v8}, Landroidx/navigation/NavDeepLink$Builder;->build()Landroidx/navigation/NavDeepLink;
move-result-object p0
invoke-virtual {p2, p0}, Landroidx/navigation/NavDestination;->addDeepLink(Landroidx/navigation/NavDeepLink;)V
.line 273
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 363
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
return-void
.line 252
:cond_7
new-instance p0, Lorg/xmlpull/v1/XmlPullParserException;
const-string p1, "Every <deepLink> must include at least one of app:uri, app:action, or app:mimeType"
invoke-direct {p0, p1}, Lorg/xmlpull/v1/XmlPullParserException;-><init>(Ljava/lang/String;)V
throw p0
.end method
# virtual methods
.method public final inflate(I)Landroidx/navigation/NavGraph;
.locals 6
iget-object v0, p0, Landroidx/navigation/NavInflater;->context:Landroid/content/Context;
.line 51
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
.line 52
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser;
move-result-object v1
const-string v2, "res.getXml(graphResId)"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 53
move-object v2, v1
check-cast v2, Lorg/xmlpull/v1/XmlPullParser;
invoke-static {v2}, Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;
move-result-object v2
.line 56
:cond_0
:try_start_0
invoke-interface {v1}, Landroid/content/res/XmlResourceParser;->next()I
move-result v3
const/4 v4, 0x2
if-eq v3, v4, :cond_1
const/4 v5, 0x1
if-ne v3, v5, :cond_0
:cond_1
if-ne v3, v4, :cond_3
.line 63
invoke-interface {v1}, Landroid/content/res/XmlResourceParser;->getName()Ljava/lang/String;
move-result-object v3
const-string v4, "res"
.line 64
invoke-static {v0, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const-string v4, "attrs"
invoke-static {v2, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0, v1, v2, p1}, Landroidx/navigation/NavInflater;->inflate(Landroid/content/res/Resources;Landroid/content/res/XmlResourceParser;Landroid/util/AttributeSet;I)Landroidx/navigation/NavDestination;
move-result-object p0
.line 65
instance-of v2, p0, Landroidx/navigation/NavGraph;
if-eqz v2, :cond_2
.line 68
check-cast p0, Landroidx/navigation/NavGraph;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 75
invoke-interface {v1}, Landroid/content/res/XmlResourceParser;->close()V
return-object p0
.line 66
:cond_2
:try_start_1
new-instance p0, Ljava/lang/StringBuilder;
invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Root element <"
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
const-string v2, "> did not inflate into a NavGraph"
invoke-virtual {p0, v2}, 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 65
new-instance v2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v2, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v2
.line 61
:cond_3
new-instance p0, Lorg/xmlpull/v1/XmlPullParserException;
const-string v2, "No start tag found"
invoke-direct {p0, v2}, Lorg/xmlpull/v1/XmlPullParserException;-><init>(Ljava/lang/String;)V
throw p0
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:catchall_0
move-exception p0
goto :goto_0
:catch_0
move-exception p0
.line 70
:try_start_2
new-instance v2, Ljava/lang/RuntimeException;
.line 71
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "Exception inflating "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, " line "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-interface {v1}, Landroid/content/res/XmlResourceParser;->getLineNumber()I
move-result v0
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 72
check-cast p0, Ljava/lang/Throwable;
.line 70
invoke-direct {v2, p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 75
:goto_0
invoke-interface {v1}, Landroid/content/res/XmlResourceParser;->close()V
throw p0
.end method