1869 lines
60 KiB
Smali
1869 lines
60 KiB
Smali
.class public Landroidx/fragment/app/FragmentStateManager;
|
|
.super Ljava/lang/Object;
|
|
.source "FragmentStateManager.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final TAG:Ljava/lang/String; = "FragmentManager"
|
|
|
|
.field public static final TARGET_REQUEST_CODE_STATE_TAG:Ljava/lang/String; = "android:target_req_state"
|
|
|
|
.field public static final TARGET_STATE_TAG:Ljava/lang/String; = "android:target_state"
|
|
|
|
.field public static final USER_VISIBLE_HINT_TAG:Ljava/lang/String; = "android:user_visible_hint"
|
|
|
|
.field public static final VIEW_STATE_TAG:Ljava/lang/String; = "android:view_state"
|
|
|
|
|
|
# instance fields
|
|
.field public final mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
.field public final mFragment:Landroidx/fragment/app/Fragment;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public mFragmentManagerState:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;Landroidx/fragment/app/Fragment;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroidx/fragment/app/Fragment;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragmentManagerState:I
|
|
|
|
iput-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iput-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;Landroidx/fragment/app/Fragment;Landroidx/fragment/app/FragmentState;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroidx/fragment/app/Fragment;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroidx/fragment/app/FragmentState;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragmentManagerState:I
|
|
|
|
iput-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iput-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p2, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p2, Landroidx/fragment/app/Fragment;->mBackStackNesting:I
|
|
|
|
iput-boolean v0, p2, Landroidx/fragment/app/Fragment;->mInLayout:Z
|
|
|
|
iput-boolean v0, p2, Landroidx/fragment/app/Fragment;->mAdded:Z
|
|
|
|
iget-object v0, p2, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v0, p1
|
|
|
|
:goto_0
|
|
iput-object v0, p2, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
|
|
|
|
iget-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iput-object p1, p2, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object p1, p3, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iput-object p1, p2, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
new-instance p1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {p1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
iput-object p1, p2, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;Ljava/lang/ClassLoader;Landroidx/fragment/app/FragmentFactory;Landroidx/fragment/app/FragmentState;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/ClassLoader;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroidx/fragment/app/FragmentFactory;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Landroidx/fragment/app/FragmentState;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragmentManagerState:I
|
|
|
|
iput-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object p1, p4, Landroidx/fragment/app/FragmentState;->mClassName:Ljava/lang/String;
|
|
|
|
invoke-virtual {p3, p2, p1}, Landroidx/fragment/app/FragmentFactory;->instantiate(Ljava/lang/ClassLoader;Ljava/lang/String;)Landroidx/fragment/app/Fragment;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object p1, p4, Landroidx/fragment/app/FragmentState;->mArguments:Landroid/os/Bundle;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Bundle;->setClassLoader(Ljava/lang/ClassLoader;)V
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object p2, p4, Landroidx/fragment/app/FragmentState;->mArguments:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object p2, p4, Landroidx/fragment/app/FragmentState;->mWho:Ljava/lang/String;
|
|
|
|
iput-object p2, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
|
|
|
|
iget-boolean p2, p4, Landroidx/fragment/app/FragmentState;->mFromLayout:Z
|
|
|
|
iput-boolean p2, p1, Landroidx/fragment/app/Fragment;->mFromLayout:Z
|
|
|
|
const/4 p2, 0x1
|
|
|
|
iput-boolean p2, p1, Landroidx/fragment/app/Fragment;->mRestored:Z
|
|
|
|
iget p2, p4, Landroidx/fragment/app/FragmentState;->mFragmentId:I
|
|
|
|
iput p2, p1, Landroidx/fragment/app/Fragment;->mFragmentId:I
|
|
|
|
iget p2, p4, Landroidx/fragment/app/FragmentState;->mContainerId:I
|
|
|
|
iput p2, p1, Landroidx/fragment/app/Fragment;->mContainerId:I
|
|
|
|
iget-object p2, p4, Landroidx/fragment/app/FragmentState;->mTag:Ljava/lang/String;
|
|
|
|
iput-object p2, p1, Landroidx/fragment/app/Fragment;->mTag:Ljava/lang/String;
|
|
|
|
iget-boolean p2, p4, Landroidx/fragment/app/FragmentState;->mRetainInstance:Z
|
|
|
|
iput-boolean p2, p1, Landroidx/fragment/app/Fragment;->mRetainInstance:Z
|
|
|
|
iget-boolean p2, p4, Landroidx/fragment/app/FragmentState;->mRemoving:Z
|
|
|
|
iput-boolean p2, p1, Landroidx/fragment/app/Fragment;->mRemoving:Z
|
|
|
|
iget-boolean p2, p4, Landroidx/fragment/app/FragmentState;->mDetached:Z
|
|
|
|
iput-boolean p2, p1, Landroidx/fragment/app/Fragment;->mDetached:Z
|
|
|
|
iget-boolean p2, p4, Landroidx/fragment/app/FragmentState;->mHidden:Z
|
|
|
|
iput-boolean p2, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
|
|
|
|
invoke-static {}, Landroidx/lifecycle/Lifecycle$State;->values()[Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
move-result-object p2
|
|
|
|
iget p3, p4, Landroidx/fragment/app/FragmentState;->mMaxLifecycleState:I
|
|
|
|
aget-object p2, p2, p3
|
|
|
|
iput-object p2, p1, Landroidx/fragment/app/Fragment;->mMaxState:Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
iget-object p1, p4, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iput-object p1, p2, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
new-instance p2, Landroid/os/Bundle;
|
|
|
|
invoke-direct {p2}, Landroid/os/Bundle;-><init>()V
|
|
|
|
iput-object p2, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
:goto_0
|
|
const/4 p1, 0x2
|
|
|
|
invoke-static {p1}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
const-string p1, "Instantiated fragment "
|
|
|
|
invoke-static {p1}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "FragmentManager"
|
|
|
|
invoke-static {p2, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private saveBasicState()Landroid/os/Bundle;
|
|
.locals 4
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/fragment/app/Fragment;->performSaveInstanceState(Landroid/os/Bundle;)V
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v1, v2, v0, v3}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentSaveInstanceState(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
|
|
|
|
invoke-virtual {v0}, Landroid/os/Bundle;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/FragmentStateManager;->saveViewState()V
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v1, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
:cond_2
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v1, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
|
|
|
|
const-string v2, "android:view_state"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putSparseParcelableArray(Ljava/lang/String;Landroid/util/SparseArray;)V
|
|
|
|
:cond_3
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v1, v1, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
:cond_4
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v1, v1, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
|
|
|
|
const-string v2, "android:user_visible_hint"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
:cond_5
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public activityCreated()V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "moveto ACTIVITY_CREATED: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->performActivityCreated(Landroid/os/Bundle;)V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, v1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentActivityCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public attach(Landroidx/fragment/app/FragmentHostCallback;Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;)V
|
|
.locals 2
|
|
.param p1 # Landroidx/fragment/app/FragmentHostCallback;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroidx/fragment/app/FragmentManager;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroidx/fragment/app/Fragment;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/fragment/app/FragmentHostCallback<",
|
|
"*>;",
|
|
"Landroidx/fragment/app/FragmentManager;",
|
|
"Landroidx/fragment/app/Fragment;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iput-object p1, v0, Landroidx/fragment/app/Fragment;->mHost:Landroidx/fragment/app/FragmentHostCallback;
|
|
|
|
iput-object p3, v0, Landroidx/fragment/app/Fragment;->mParentFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iput-object p2, v0, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
iget-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p2, v0, p3, v1}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentPreAttached(Landroidx/fragment/app/Fragment;Landroid/content/Context;Z)V
|
|
|
|
iget-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p2}, Landroidx/fragment/app/Fragment;->performAttach()V
|
|
|
|
iget-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object p3, p2, Landroidx/fragment/app/Fragment;->mParentFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/fragment/app/FragmentHostCallback;->onAttachFragment(Landroidx/fragment/app/Fragment;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p3, p2}, Landroidx/fragment/app/Fragment;->onAttachFragment(Landroidx/fragment/app/Fragment;)V
|
|
|
|
:goto_0
|
|
iget-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object p3, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p3, p1, v1}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentAttached(Landroidx/fragment/app/Fragment;Landroid/content/Context;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public computeMaxState()I
|
|
.locals 7
|
|
|
|
iget v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragmentManagerState:I
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v2, v1, Landroidx/fragment/app/Fragment;->mFromLayout:Z
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget-boolean v2, v1, Landroidx/fragment/app/Fragment;->mInLayout:Z
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-static {v0, v4}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-ge v0, v3, :cond_1
|
|
|
|
iget v1, v1, Landroidx/fragment/app/Fragment;->mState:I
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-static {v0, v4}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:cond_2
|
|
:goto_0
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v1, v1, Landroidx/fragment/app/Fragment;->mAdded:Z
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
invoke-static {v0, v4}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:cond_3
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v2, v1, Landroidx/fragment/app/Fragment;->mRemoving:Z
|
|
|
|
const/4 v5, -0x1
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->isInBackStack()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-static {v0, v4}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
invoke-static {v0, v5}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:cond_5
|
|
:goto_1
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v2, v1, Landroidx/fragment/app/Fragment;->mDeferStart:Z
|
|
|
|
const/4 v6, 0x3
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
iget v1, v1, Landroidx/fragment/app/Fragment;->mState:I
|
|
|
|
if-ge v1, v6, :cond_6
|
|
|
|
invoke-static {v0, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:cond_6
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v1, Landroidx/fragment/app/Fragment;->mMaxState:Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
if-eq v1, v3, :cond_8
|
|
|
|
if-eq v1, v6, :cond_7
|
|
|
|
const/4 v2, 0x4
|
|
|
|
if-eq v1, v2, :cond_9
|
|
|
|
invoke-static {v0, v5}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
invoke-static {v0, v6}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
invoke-static {v0, v4}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:cond_9
|
|
:goto_2
|
|
return v0
|
|
.end method
|
|
|
|
.method public create()V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "moveto CREATED: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v1, v0, Landroidx/fragment/app/Fragment;->mIsCreated:Z
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v2, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v1, v0, v2, v3}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentPreCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->performCreate(Landroid/os/Bundle;)V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, v1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object v1, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->restoreChildFragmentState(Landroid/os/Bundle;)V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iput v1, v0, Landroidx/fragment/app/Fragment;->mState:I
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public createView(Landroidx/fragment/app/FragmentContainer;)V
|
|
.locals 4
|
|
.param p1 # Landroidx/fragment/app/FragmentContainer;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v0, v0, Landroidx/fragment/app/Fragment;->mFromLayout:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "moveto CREATE_VIEW: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, v1, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
move-object v0, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget v1, v1, Landroidx/fragment/app/Fragment;->mContainerId:I
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
const/4 v0, -0x1
|
|
|
|
if-eq v1, v0, :cond_4
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/fragment/app/FragmentContainer;->onFindViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v1, p1, Landroidx/fragment/app/Fragment;->mRestored:Z
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
:try_start_0
|
|
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget v0, v0, Landroidx/fragment/app/Fragment;->mContainerId:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
const-string p1, "unknown"
|
|
|
|
:goto_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "No view found for id 0x"
|
|
|
|
invoke-static {v1}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget v2, v2, Landroidx/fragment/app/Fragment;->mContainerId:I
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, " ("
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, ") for fragment "
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Cannot create fragment "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " for a container view with no id"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_5
|
|
:goto_1
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iput-object v0, p1, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
|
|
|
|
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/fragment/app/Fragment;->performGetLayoutInflater(Landroid/os/Bundle;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, v2, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p1, v1, v0, v2}, Landroidx/fragment/app/Fragment;->performCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)V
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object p1, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->setSaveFromParentEnabled(Z)V
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
sget v3, Landroidx/fragment/R$id;->fragment_container_view_tag:I
|
|
|
|
invoke-virtual {v2, v3, p1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object p1, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
:cond_6
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
iget-object p1, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
const/16 v0, 0x8
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_7
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object p1, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->requestApplyInsets(Landroid/view/View;)V
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
iget-object v2, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p1, v0, v2}, Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, v0, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
iget-object v3, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p1, v0, v2, v3, v1}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentViewCreated(Landroidx/fragment/app/Fragment;Landroid/view/View;Landroid/os/Bundle;Z)V
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_8
|
|
iput-boolean v1, p1, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z
|
|
|
|
:cond_9
|
|
return-void
|
|
.end method
|
|
|
|
.method public destroy(Landroidx/fragment/app/FragmentHostCallback;Landroidx/fragment/app/FragmentManagerViewModel;)V
|
|
.locals 4
|
|
.param p1 # Landroidx/fragment/app/FragmentHostCallback;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroidx/fragment/app/FragmentManagerViewModel;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/fragment/app/FragmentHostCallback<",
|
|
"*>;",
|
|
"Landroidx/fragment/app/FragmentManagerViewModel;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "movefrom CREATED: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v1, v0, Landroidx/fragment/app/Fragment;->mRemoving:Z
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->isInBackStack()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_3
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p2, v1}, Landroidx/fragment/app/FragmentManagerViewModel;->shouldDestroy(Landroidx/fragment/app/Fragment;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
:goto_1
|
|
const/4 v1, 0x1
|
|
|
|
:goto_2
|
|
if-eqz v1, :cond_8
|
|
|
|
instance-of v1, p1, Landroidx/lifecycle/ViewModelStoreOwner;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-virtual {p2}, Landroidx/fragment/app/FragmentManagerViewModel;->isCleared()Z
|
|
|
|
move-result v2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
instance-of v1, v1, Landroid/app/Activity;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/app/Activity;
|
|
|
|
invoke-virtual {p1}, Landroid/app/Activity;->isChangingConfigurations()Z
|
|
|
|
move-result p1
|
|
|
|
xor-int/2addr v2, p1
|
|
|
|
:cond_5
|
|
:goto_3
|
|
if-nez v0, :cond_6
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
:cond_6
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/fragment/app/FragmentManagerViewModel;->clearNonConfigState(Landroidx/fragment/app/Fragment;)V
|
|
|
|
:cond_7
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->performDestroy()V
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object p2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p1, p2, v3}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentDestroyed(Landroidx/fragment/app/Fragment;Z)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iput v3, p1, Landroidx/fragment/app/Fragment;->mState:I
|
|
|
|
:goto_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public detach(Landroidx/fragment/app/FragmentManagerViewModel;)V
|
|
.locals 5
|
|
.param p1 # Landroidx/fragment/app/FragmentManagerViewModel;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "FragmentManager"
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-string v1, "movefrom ATTACHED: "
|
|
|
|
invoke-static {v1}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v3, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v2, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->performDetach()V
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v3, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {v1, v3, v4}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentDetached(Landroidx/fragment/app/Fragment;Z)V
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v3, -0x1
|
|
|
|
iput v3, v1, Landroidx/fragment/app/Fragment;->mState:I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
iput-object v3, v1, Landroidx/fragment/app/Fragment;->mHost:Landroidx/fragment/app/FragmentHostCallback;
|
|
|
|
iput-object v3, v1, Landroidx/fragment/app/Fragment;->mParentFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iput-object v3, v1, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
iget-boolean v3, v1, Landroidx/fragment/app/Fragment;->mRemoving:Z
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->isInBackStack()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/4 v4, 0x1
|
|
|
|
:cond_1
|
|
if-nez v4, :cond_2
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/fragment/app/FragmentManagerViewModel;->shouldDestroy(Landroidx/fragment/app/Fragment;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
:cond_2
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
const-string p1, "initState called for fragment: "
|
|
|
|
invoke-static {p1}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_3
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->initState()V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public ensureInflatedView()V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v1, v0, Landroidx/fragment/app/Fragment;->mFromLayout:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-boolean v1, v0, Landroidx/fragment/app/Fragment;->mInLayout:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-boolean v0, v0, Landroidx/fragment/app/Fragment;->mPerformedCreateView:Z
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "moveto CREATE_VIEW: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->performGetLayoutInflater(Landroid/os/Bundle;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
iget-object v3, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v3, v3, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroidx/fragment/app/Fragment;->performCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setSaveFromParentEnabled(Z)V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, v0, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
sget v3, Landroidx/fragment/R$id;->fragment_container_view_tag:I
|
|
|
|
invoke-virtual {v2, v3, v0}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v2, v0, Landroidx/fragment/app/Fragment;->mHidden:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
const/16 v2, 0x8
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, v0, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
iget-object v3, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v2, v3}, Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v3, v2, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
iget-object v4, v2, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v2, v3, v4, v1}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentViewCreated(Landroidx/fragment/app/Fragment;Landroid/view/View;Landroid/os/Bundle;Z)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public getFragment()Landroidx/fragment/app/Fragment;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public pause()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "movefrom RESUMED: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->performPause()V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentPaused(Landroidx/fragment/app/Fragment;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public restoreState(Ljava/lang/ClassLoader;)V
|
|
.locals 3
|
|
.param p1 # Ljava/lang/ClassLoader;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Landroid/os/Bundle;->setClassLoader(Ljava/lang/ClassLoader;)V
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
const-string v1, "android:view_state"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getSparseParcelableArray(Ljava/lang/String;)Landroid/util/SparseArray;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p1, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
const-string v1, "android:target_state"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p1, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "android:target_req_state"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p1, Landroidx/fragment/app/Fragment;->mTargetRequestCode:I
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mSavedUserVisibleHint:Ljava/lang/Boolean;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
|
|
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
|
|
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p1, Landroidx/fragment/app/Fragment;->mSavedUserVisibleHint:Ljava/lang/Boolean;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
const-string v2, "android:user_visible_hint"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
|
|
|
|
:goto_0
|
|
iget-object p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iput-boolean v1, p1, Landroidx/fragment/app/Fragment;->mDeferStart:Z
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public restoreViewState()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "moveto RESTORE_VIEW_STATE: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v0, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v1, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->restoreViewState(Landroid/os/Bundle;)V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public resume()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "moveto RESUMED: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->performResume()V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentResumed(Landroidx/fragment/app/Fragment;Z)V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, v0, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
iput-object v1, v0, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public saveInstanceState()Landroidx/fragment/app/Fragment$SavedState;
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget v0, v0, Landroidx/fragment/app/Fragment;->mState:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-le v0, v2, :cond_0
|
|
|
|
invoke-direct {p0}, Landroidx/fragment/app/FragmentStateManager;->saveBasicState()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v1, Landroidx/fragment/app/Fragment$SavedState;
|
|
|
|
invoke-direct {v1, v0}, Landroidx/fragment/app/Fragment$SavedState;-><init>(Landroid/os/Bundle;)V
|
|
|
|
:cond_0
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public saveState()Landroidx/fragment/app/FragmentState;
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
new-instance v0, Landroidx/fragment/app/FragmentState;
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-direct {v0, v1}, Landroidx/fragment/app/FragmentState;-><init>(Landroidx/fragment/app/Fragment;)V
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget v1, v1, Landroidx/fragment/app/Fragment;->mState:I
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-le v1, v2, :cond_1
|
|
|
|
iget-object v1, v0, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
invoke-direct {p0}, Landroidx/fragment/app/FragmentStateManager;->saveBasicState()Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
iget-object v2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, v2, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
iput-object v1, v0, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
:cond_0
|
|
iget-object v1, v0, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
iget-object v2, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v2, v2, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
|
|
|
|
const-string v3, "android:target_state"
|
|
|
|
invoke-virtual {v1, v3, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget v1, v1, Landroidx/fragment/app/Fragment;->mTargetRequestCode:I
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v2, v0, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
const-string v3, "android:target_req_state"
|
|
|
|
invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
iput-object v1, v0, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public saveViewState()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v0, Landroid/util/SparseArray;
|
|
|
|
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iget-object v1, v1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->saveHierarchyState(Landroid/util/SparseArray;)V
|
|
|
|
invoke-virtual {v0}, Landroid/util/SparseArray;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
iput-object v0, v1, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFragmentManagerState(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragmentManagerState:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public start()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "moveto STARTED: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->performStart()V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentStarted(Landroidx/fragment/app/Fragment;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public stop()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "movefrom STARTED: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "FragmentManager"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->performStop()V
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentStateManager;->mDispatcher:Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/FragmentStateManager;->mFragment:Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroidx/fragment/app/FragmentLifecycleCallbacksDispatcher;->dispatchOnFragmentStopped(Landroidx/fragment/app/Fragment;Z)V
|
|
|
|
return-void
|
|
.end method
|