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

738 lines
25 KiB
Smali

.class public Landroidx/navigation/fragment/NavHostFragment;
.super Landroidx/fragment/app/Fragment;
.source "NavHostFragment.kt"
# interfaces
.implements Landroidx/navigation/NavHost;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/navigation/fragment/NavHostFragment$Companion;
}
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nNavHostFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NavHostFragment.kt\nandroidx/navigation/fragment/NavHostFragment\n+ 2 NavigatorProvider.kt\nandroidx/navigation/NavigatorProviderKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 TypedArray.kt\nandroidx/core/content/res/TypedArrayKt\n*L\n1#1,407:1\n181#2,2:408\n1#3:410\n232#4,3:411\n232#4,3:414\n*S KotlinDebug\n*F\n+ 1 NavHostFragment.kt\nandroidx/navigation/fragment/NavHostFragment\n*L\n210#1:408,2\n283#1:411,3\n291#1:414,3\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000l\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0006\u0008\u0016\u0018\u0000 02\u00020\u00012\u00020\u0002:\u00010B\u0005\u00a2\u0006\u0002\u0010\u0003J\u0010\u0010\u0017\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00190\u0018H\u0015J\u0010\u0010\u001a\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0017J\u0012\u0010\u001e\u001a\u00020\u001b2\u0008\u0010\u001f\u001a\u0004\u0018\u00010 H\u0017J\u0010\u0010!\u001a\u00020\u001b2\u0006\u0010\u000b\u001a\u00020\u000cH\u0015J\u0010\u0010\"\u001a\u00020\u001b2\u0006\u0010\u000f\u001a\u00020\u0010H\u0015J&\u0010#\u001a\u0004\u0018\u00010\u00162\u0006\u0010$\u001a\u00020%2\u0008\u0010&\u001a\u0004\u0018\u00010\'2\u0008\u0010\u001f\u001a\u0004\u0018\u00010 H\u0016J\u0008\u0010(\u001a\u00020\u001bH\u0016J\"\u0010)\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010*\u001a\u00020+2\u0008\u0010\u001f\u001a\u0004\u0018\u00010 H\u0017J\u0010\u0010,\u001a\u00020\u001b2\u0006\u0010-\u001a\u00020 H\u0017J\u001a\u0010.\u001a\u00020\u001b2\u0006\u0010/\u001a\u00020\u00162\u0008\u0010\u001f\u001a\u0004\u0018\u00010 H\u0016R\u0014\u0010\u0004\u001a\u00020\u00058BX\u0082\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u0006\u0010\u0007R\u000e\u0010\u0008\u001a\u00020\tX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u000b\u001a\u00020\u000c8F\u00a2\u0006\u0006\u001a\u0004\u0008\r\u0010\u000eR\u001b\u0010\u000f\u001a\u00020\u00108@X\u0080\u0084\u0002\u00a2\u0006\u000c\n\u0004\u0008\u0013\u0010\u0014\u001a\u0004\u0008\u0011\u0010\u0012R\u0010\u0010\u0015\u001a\u0004\u0018\u00010\u0016X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u00061"
}
d2 = {
"Landroidx/navigation/fragment/NavHostFragment;",
"Landroidx/fragment/app/Fragment;",
"Landroidx/navigation/NavHost;",
"()V",
"containerId",
"",
"getContainerId",
"()I",
"defaultNavHost",
"",
"graphId",
"navController",
"Landroidx/navigation/NavController;",
"getNavController",
"()Landroidx/navigation/NavController;",
"navHostController",
"Landroidx/navigation/NavHostController;",
"getNavHostController$navigation_fragment_release",
"()Landroidx/navigation/NavHostController;",
"navHostController$delegate",
"Lkotlin/Lazy;",
"viewParent",
"Landroid/view/View;",
"createFragmentNavigator",
"Landroidx/navigation/Navigator;",
"Landroidx/navigation/fragment/FragmentNavigator$Destination;",
"onAttach",
"",
"context",
"Landroid/content/Context;",
"onCreate",
"savedInstanceState",
"Landroid/os/Bundle;",
"onCreateNavController",
"onCreateNavHostController",
"onCreateView",
"inflater",
"Landroid/view/LayoutInflater;",
"container",
"Landroid/view/ViewGroup;",
"onDestroyView",
"onInflate",
"attrs",
"Landroid/util/AttributeSet;",
"onSaveInstanceState",
"outState",
"onViewCreated",
"view",
"Companion",
"navigation-fragment_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# static fields
.field public static final Companion:Landroidx/navigation/fragment/NavHostFragment$Companion;
.field private static final KEY_DEFAULT_NAV_HOST:Ljava/lang/String; = "android-support-nav:fragment:defaultHost"
.field public static final KEY_GRAPH_ID:Ljava/lang/String; = "android-support-nav:fragment:graphId"
.field private static final KEY_NAV_CONTROLLER_STATE:Ljava/lang/String; = "android-support-nav:fragment:navControllerState"
.field public static final KEY_START_DESTINATION_ARGS:Ljava/lang/String; = "android-support-nav:fragment:startDestinationArgs"
# instance fields
.field private defaultNavHost:Z
.field private graphId:I
.field private final navHostController$delegate:Lkotlin/Lazy;
.field private viewParent:Landroid/view/View;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Landroidx/navigation/fragment/NavHostFragment$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Landroidx/navigation/fragment/NavHostFragment$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Landroidx/navigation/fragment/NavHostFragment;->Companion:Landroidx/navigation/fragment/NavHostFragment$Companion;
return-void
.end method
.method public constructor <init>()V
.locals 1
.line 77
invoke-direct {p0}, Landroidx/fragment/app/Fragment;-><init>()V
.line 78
new-instance v0, Landroidx/navigation/fragment/NavHostFragment$navHostController$2;
invoke-direct {v0, p0}, Landroidx/navigation/fragment/NavHostFragment$navHostController$2;-><init>(Landroidx/navigation/fragment/NavHostFragment;)V
check-cast v0, Lkotlin/jvm/functions/Function0;
invoke-static {v0}, Lkotlin/LazyKt;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
move-result-object v0
iput-object v0, p0, Landroidx/navigation/fragment/NavHostFragment;->navHostController$delegate:Lkotlin/Lazy;
return-void
.end method
.method public static final synthetic access$getGraphId$p(Landroidx/navigation/fragment/NavHostFragment;)I
.locals 0
.line 77
iget p0, p0, Landroidx/navigation/fragment/NavHostFragment;->graphId:I
return p0
.end method
.method public static final synthetic access$setGraphId$p(Landroidx/navigation/fragment/NavHostFragment;I)V
.locals 0
.line 77
iput p1, p0, Landroidx/navigation/fragment/NavHostFragment;->graphId:I
return-void
.end method
.method public static final create(I)Landroidx/navigation/fragment/NavHostFragment;
.locals 1
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
sget-object v0, Landroidx/navigation/fragment/NavHostFragment;->Companion:Landroidx/navigation/fragment/NavHostFragment$Companion;
invoke-virtual {v0, p0}, Landroidx/navigation/fragment/NavHostFragment$Companion;->create(I)Landroidx/navigation/fragment/NavHostFragment;
move-result-object p0
return-object p0
.end method
.method public static final create(ILandroid/os/Bundle;)Landroidx/navigation/fragment/NavHostFragment;
.locals 1
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
sget-object v0, Landroidx/navigation/fragment/NavHostFragment;->Companion:Landroidx/navigation/fragment/NavHostFragment$Companion;
invoke-virtual {v0, p0, p1}, Landroidx/navigation/fragment/NavHostFragment$Companion;->create(ILandroid/os/Bundle;)Landroidx/navigation/fragment/NavHostFragment;
move-result-object p0
return-object p0
.end method
.method public static final findNavController(Landroidx/fragment/app/Fragment;)Landroidx/navigation/NavController;
.locals 1
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
sget-object v0, Landroidx/navigation/fragment/NavHostFragment;->Companion:Landroidx/navigation/fragment/NavHostFragment$Companion;
invoke-virtual {v0, p0}, Landroidx/navigation/fragment/NavHostFragment$Companion;->findNavController(Landroidx/fragment/app/Fragment;)Landroidx/navigation/NavController;
move-result-object p0
return-object p0
.end method
.method private final getContainerId()I
.locals 1
.line 251
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getId()I
move-result p0
if-eqz p0, :cond_0
const/4 v0, -0x1
if-eq p0, v0, :cond_0
goto :goto_0
.line 254
:cond_0
sget p0, Landroidx/navigation/fragment/R$id;->nav_host_fragment_container:I
:goto_0
return p0
.end method
# virtual methods
.method protected createFragmentNavigator()Landroidx/navigation/Navigator;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/navigation/Navigator<",
"+",
"Landroidx/navigation/fragment/FragmentNavigator$Destination;",
">;"
}
.end annotation
.annotation runtime Lkotlin/Deprecated;
message = "Use {@link #onCreateNavController(NavController)}"
.end annotation
.line 225
new-instance v0, Landroidx/navigation/fragment/FragmentNavigator;
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->requireContext()Landroid/content/Context;
move-result-object v1
const-string v2, "requireContext()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v2
const-string v3, "childFragmentManager"
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Landroidx/navigation/fragment/NavHostFragment;->getContainerId()I
move-result p0
invoke-direct {v0, v1, v2, p0}, Landroidx/navigation/fragment/FragmentNavigator;-><init>(Landroid/content/Context;Landroidx/fragment/app/FragmentManager;I)V
check-cast v0, Landroidx/navigation/Navigator;
return-object v0
.end method
.method public final getNavController()Landroidx/navigation/NavController;
.locals 0
.line 131
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getNavHostController$navigation_fragment_release()Landroidx/navigation/NavHostController;
move-result-object p0
check-cast p0, Landroidx/navigation/NavController;
return-object p0
.end method
.method public final getNavHostController$navigation_fragment_release()Landroidx/navigation/NavHostController;
.locals 0
iget-object p0, p0, Landroidx/navigation/fragment/NavHostFragment;->navHostController$delegate:Lkotlin/Lazy;
.line 78
invoke-interface {p0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object p0
check-cast p0, Landroidx/navigation/NavHostController;
return-object p0
.end method
.method public onAttach(Landroid/content/Context;)V
.locals 1
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 135
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onAttach(Landroid/content/Context;)V
iget-boolean p1, p0, Landroidx/navigation/fragment/NavHostFragment;->defaultNavHost:Z
if-eqz p1, :cond_0
.line 141
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object p1
invoke-virtual {p1}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object p1
.line 142
check-cast p0, Landroidx/fragment/app/Fragment;
invoke-virtual {p1, p0}, Landroidx/fragment/app/FragmentTransaction;->setPrimaryNavigationFragment(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction;
move-result-object p0
.line 143
invoke-virtual {p0}, Landroidx/fragment/app/FragmentTransaction;->commit()I
:cond_0
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 2
.line 150
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getNavHostController$navigation_fragment_release()Landroidx/navigation/NavHostController;
if-eqz p1, :cond_0
const-string v0, "android-support-nav:fragment:defaultHost"
const/4 v1, 0x0
.line 152
invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/navigation/fragment/NavHostFragment;->defaultNavHost:Z
.line 154
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object v0
.line 155
move-object v1, p0
check-cast v1, Landroidx/fragment/app/Fragment;
invoke-virtual {v0, v1}, Landroidx/fragment/app/FragmentTransaction;->setPrimaryNavigationFragment(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction;
move-result-object v0
.line 156
invoke-virtual {v0}, Landroidx/fragment/app/FragmentTransaction;->commit()I
.line 163
:cond_0
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onCreate(Landroid/os/Bundle;)V
return-void
.end method
.method protected onCreateNavController(Landroidx/navigation/NavController;)V
.locals 5
.annotation runtime Lkotlin/Deprecated;
message = "Override {@link #onCreateNavHostController(NavHostController)} to gain\n access to the full {@link NavHostController} that is created by this NavHostFragment."
.end annotation
const-string v0, "navController"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 210
invoke-virtual {p1}, Landroidx/navigation/NavController;->getNavigatorProvider()Landroidx/navigation/NavigatorProvider;
move-result-object v0
.line 211
new-instance v1, Landroidx/navigation/fragment/DialogFragmentNavigator;
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->requireContext()Landroid/content/Context;
move-result-object v2
const-string v3, "requireContext()"
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v3
const-string v4, "childFragmentManager"
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {v1, v2, v3}, Landroidx/navigation/fragment/DialogFragmentNavigator;-><init>(Landroid/content/Context;Landroidx/fragment/app/FragmentManager;)V
check-cast v1, Landroidx/navigation/Navigator;
.line 408
invoke-virtual {v0, v1}, Landroidx/navigation/NavigatorProvider;->addNavigator(Landroidx/navigation/Navigator;)Landroidx/navigation/Navigator;
.line 212
invoke-virtual {p1}, Landroidx/navigation/NavController;->getNavigatorProvider()Landroidx/navigation/NavigatorProvider;
move-result-object p1
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->createFragmentNavigator()Landroidx/navigation/Navigator;
move-result-object p0
invoke-virtual {p1, p0}, Landroidx/navigation/NavigatorProvider;->addNavigator(Landroidx/navigation/Navigator;)Landroidx/navigation/Navigator;
return-void
.end method
.method protected onCreateNavHostController(Landroidx/navigation/NavHostController;)V
.locals 1
const-string v0, "navHostController"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 187
check-cast p1, Landroidx/navigation/NavController;
invoke-virtual {p0, p1}, Landroidx/navigation/fragment/NavHostFragment;->onCreateNavController(Landroidx/navigation/NavController;)V
return-void
.end method
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.locals 0
const-string p2, "inflater"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 233
new-instance p2, Landroidx/fragment/app/FragmentContainerView;
invoke-virtual {p1}, Landroid/view/LayoutInflater;->getContext()Landroid/content/Context;
move-result-object p1
const-string p3, "inflater.context"
invoke-static {p1, p3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p2, p1}, Landroidx/fragment/app/FragmentContainerView;-><init>(Landroid/content/Context;)V
.line 238
invoke-direct {p0}, Landroidx/navigation/fragment/NavHostFragment;->getContainerId()I
move-result p0
invoke-virtual {p2, p0}, Landroidx/fragment/app/FragmentContainerView;->setId(I)V
.line 239
check-cast p2, Landroid/view/View;
return-object p2
.end method
.method public onDestroyView()V
.locals 4
.line 308
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroyView()V
iget-object v0, p0, Landroidx/navigation/fragment/NavHostFragment;->viewParent:Landroid/view/View;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 310
invoke-static {v0}, Landroidx/navigation/Navigation;->findNavController(Landroid/view/View;)Landroidx/navigation/NavController;
move-result-object v2
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getNavHostController$navigation_fragment_release()Landroidx/navigation/NavHostController;
move-result-object v3
if-ne v2, v3, :cond_0
.line 311
invoke-static {v0, v1}, Landroidx/navigation/Navigation;->setViewNavController(Landroid/view/View;Landroidx/navigation/NavController;)V
:cond_0
iput-object v1, p0, Landroidx/navigation/fragment/NavHostFragment;->viewParent:Landroid/view/View;
return-void
.end method
.method public onInflate(Landroid/content/Context;Landroid/util/AttributeSet;Landroid/os/Bundle;)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 279
invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onInflate(Landroid/content/Context;Landroid/util/AttributeSet;Landroid/os/Bundle;)V
.line 282
sget-object p3, Landroidx/navigation/R$styleable;->NavHost:[I
.line 280
invoke-virtual {p1, p2, p3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p3
const-string v0, "context.obtainStyledAttr\u2026yleable.NavHost\n )"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 285
sget v0, Landroidx/navigation/R$styleable;->NavHost_navGraph:I
const/4 v1, 0x0
.line 284
invoke-virtual {p3, v0, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v0
if-eqz v0, :cond_0
iput v0, p0, Landroidx/navigation/fragment/NavHostFragment;->graphId:I
.line 290
:cond_0
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 412
invoke-virtual {p3}, Landroid/content/res/TypedArray;->recycle()V
.line 291
sget-object p3, Landroidx/navigation/fragment/R$styleable;->NavHostFragment:[I
invoke-virtual {p1, p2, p3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p1
const-string p2, "context.obtainStyledAttr\u2026tyleable.NavHostFragment)"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 292
sget p2, Landroidx/navigation/fragment/R$styleable;->NavHostFragment_defaultNavHost:I
invoke-virtual {p1, p2, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result p2
if-eqz p2, :cond_1
const/4 p2, 0x1
iput-boolean p2, p0, Landroidx/navigation/fragment/NavHostFragment;->defaultNavHost:Z
.line 296
:cond_1
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 415
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
return-void
.end method
.method public onSaveInstanceState(Landroid/os/Bundle;)V
.locals 1
const-string v0, "outState"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 301
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onSaveInstanceState(Landroid/os/Bundle;)V
iget-boolean p0, p0, Landroidx/navigation/fragment/NavHostFragment;->defaultNavHost:Z
if-eqz p0, :cond_0
const-string p0, "android-support-nav:fragment:defaultHost"
const/4 v0, 0x1
.line 303
invoke-virtual {p1, p0, v0}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
:cond_0
return-void
.end method
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.locals 1
const-string v0, "view"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 260
invoke-super {p0, p1, p2}, Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.line 261
instance-of p2, p1, Landroid/view/ViewGroup;
if-eqz p2, :cond_1
.line 262
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getNavHostController$navigation_fragment_release()Landroidx/navigation/NavHostController;
move-result-object p2
check-cast p2, Landroidx/navigation/NavController;
invoke-static {p1, p2}, Landroidx/navigation/Navigation;->setViewNavController(Landroid/view/View;Landroidx/navigation/NavController;)V
.line 265
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object p2
if-eqz p2, :cond_0
.line 266
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object p1
const-string p2, "null cannot be cast to non-null type android.view.View"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Landroid/view/View;
iput-object p1, p0, Landroidx/navigation/fragment/NavHostFragment;->viewParent:Landroid/view/View;
.line 267
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
invoke-virtual {p1}, Landroid/view/View;->getId()I
move-result p1
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getId()I
move-result p2
if-ne p1, p2, :cond_0
iget-object p1, p0, Landroidx/navigation/fragment/NavHostFragment;->viewParent:Landroid/view/View;
.line 268
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
invoke-virtual {p0}, Landroidx/navigation/fragment/NavHostFragment;->getNavHostController$navigation_fragment_release()Landroidx/navigation/NavHostController;
move-result-object p0
check-cast p0, Landroidx/navigation/NavController;
invoke-static {p1, p0}, Landroidx/navigation/Navigation;->setViewNavController(Landroid/view/View;Landroidx/navigation/NavController;)V
:cond_0
return-void
.line 261
:cond_1
new-instance p0, Ljava/lang/StringBuilder;
const-string p2, "created host view "
invoke-direct {p0, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const-string p1, " is not a ViewGroup"
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
new-instance p1, Ljava/lang/IllegalStateException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method