apkfuckery/com.discord/smali/androidx/fragment/app/FragmentManagerImpl.smali
2019-12-06 04:29:40 +01:00

10955 lines
306 KiB
Smali

.class public final Landroidx/fragment/app/FragmentManagerImpl;
.super Landroidx/fragment/app/FragmentManager;
.source "FragmentManagerImpl.java"
# interfaces
.implements Landroid/view/LayoutInflater$Factory2;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/fragment/app/FragmentManagerImpl$EndViewTransitionAnimation;,
Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;,
Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;,
Landroidx/fragment/app/FragmentManagerImpl$PopBackStackState;,
Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;,
Landroidx/fragment/app/FragmentManagerImpl$FragmentTag;,
Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
}
.end annotation
# static fields
.field public static final ANIM_DUR:I = 0xdc
.field public static final ANIM_STYLE_CLOSE_ENTER:I = 0x3
.field public static final ANIM_STYLE_CLOSE_EXIT:I = 0x4
.field public static final ANIM_STYLE_FADE_ENTER:I = 0x5
.field public static final ANIM_STYLE_FADE_EXIT:I = 0x6
.field public static final ANIM_STYLE_OPEN_ENTER:I = 0x1
.field public static final ANIM_STYLE_OPEN_EXIT:I = 0x2
.field public static DEBUG:Z = false
.field public static final DECELERATE_CUBIC:Landroid/view/animation/Interpolator;
.field public static final DECELERATE_QUINT:Landroid/view/animation/Interpolator;
.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 mActive:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Landroidx/fragment/app/Fragment;",
">;"
}
.end annotation
.end field
.field public final mAdded:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/Fragment;",
">;"
}
.end annotation
.end field
.field public mAvailBackStackIndices:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field public mBackStack:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;"
}
.end annotation
.end field
.field public mBackStackChangeListeners:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/FragmentManager$OnBackStackChangedListener;",
">;"
}
.end annotation
.end field
.field public mBackStackIndices:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;"
}
.end annotation
.end field
.field public mContainer:Landroidx/fragment/app/FragmentContainer;
.field public mCreatedMenus:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/Fragment;",
">;"
}
.end annotation
.end field
.field public mCurState:I
.field public mDestroyed:Z
.field public mExecCommit:Ljava/lang/Runnable;
.field public mExecutingActions:Z
.field public mHavePendingDeferredStart:Z
.field public mHost:Landroidx/fragment/app/FragmentHostCallback;
.field public final mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/CopyOnWriteArrayList<",
"Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;",
">;"
}
.end annotation
.end field
.field public mNeedMenuInvalidate:Z
.field public mNextFragmentIndex:I
.field public mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
.field public final mOnBackPressedCallback:Landroidx/activity/OnBackPressedCallback;
.field public mOnBackPressedDispatcher:Landroidx/activity/OnBackPressedDispatcher;
.field public mParent:Landroidx/fragment/app/Fragment;
.field public mPendingActions:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;",
">;"
}
.end annotation
.end field
.field public mPostponedTransactions:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;",
">;"
}
.end annotation
.end field
.field public mPrimaryNav:Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public mStateArray:Landroid/util/SparseArray;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray<",
"Landroid/os/Parcelable;",
">;"
}
.end annotation
.end field
.field public mStateBundle:Landroid/os/Bundle;
.field public mStateSaved:Z
.field public mStopped:Z
.field public mTmpAddedFragments:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/Fragment;",
">;"
}
.end annotation
.end field
.field public mTmpIsPop:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.end field
.field public mTmpRecords:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Landroid/view/animation/DecelerateInterpolator;
const/high16 v1, 0x40200000 # 2.5f
invoke-direct {v0, v1}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V
sput-object v0, Landroidx/fragment/app/FragmentManagerImpl;->DECELERATE_QUINT:Landroid/view/animation/Interpolator;
new-instance v0, Landroid/view/animation/DecelerateInterpolator;
const/high16 v1, 0x3fc00000 # 1.5f
invoke-direct {v0, v1}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V
sput-object v0, Landroidx/fragment/app/FragmentManagerImpl;->DECELERATE_CUBIC:Landroid/view/animation/Interpolator;
return-void
.end method
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Landroidx/fragment/app/FragmentManager;-><init>()V
const/4 v0, 0x0
iput v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNextFragmentIndex:I
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
iput-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
new-instance v1, Landroidx/fragment/app/FragmentManagerImpl$1;
invoke-direct {v1, p0, v0}, Landroidx/fragment/app/FragmentManagerImpl$1;-><init>(Landroidx/fragment/app/FragmentManagerImpl;Z)V
iput-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedCallback:Landroidx/activity/OnBackPressedCallback;
new-instance v1, Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-direct {v1}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V
iput-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
iput v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v0, 0x0
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateBundle:Landroid/os/Bundle;
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateArray:Landroid/util/SparseArray;
new-instance v0, Landroidx/fragment/app/FragmentManagerImpl$2;
invoke-direct {v0, p0}, Landroidx/fragment/app/FragmentManagerImpl$2;-><init>(Landroidx/fragment/app/FragmentManagerImpl;)V
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecCommit:Ljava/lang/Runnable;
return-void
.end method
.method private addAddedFragments(Landroidx/collection/ArraySet;)V
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/collection/ArraySet<",
"Landroidx/fragment/app/Fragment;",
">;)V"
}
.end annotation
iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v1, 0x1
if-ge v0, v1, :cond_0
return-void
:cond_0
const/4 v1, 0x3
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
move-result v0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
const/4 v2, 0x0
const/4 v8, 0x0
:goto_0
if-ge v8, v1, :cond_2
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v2, v8}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
move-object v9, v2
check-cast v9, Landroidx/fragment/app/Fragment;
iget v2, v9, Landroidx/fragment/app/Fragment;->mState:I
if-ge v2, v0, :cond_1
invoke-virtual {v9}, Landroidx/fragment/app/Fragment;->getNextAnim()I
move-result v5
invoke-virtual {v9}, Landroidx/fragment/app/Fragment;->getNextTransition()I
move-result v6
const/4 v7, 0x0
move-object v2, p0
move-object v3, v9
move v4, v0
invoke-virtual/range {v2 .. v7}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
iget-object v2, v9, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v2, :cond_1
iget-boolean v2, v9, Landroidx/fragment/app/Fragment;->mHidden:Z
if-nez v2, :cond_1
iget-boolean v2, v9, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z
if-eqz v2, :cond_1
invoke-virtual {p1, v9}, Landroidx/collection/ArraySet;->add(Ljava/lang/Object;)Z
:cond_1
add-int/lit8 v8, v8, 0x1
goto :goto_0
:cond_2
return-void
.end method
.method private animateRemoveFragment(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;I)V
.locals 2
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->startViewTransition(Landroid/view/View;)V
invoke-virtual {p1, p3}, Landroidx/fragment/app/Fragment;->setStateAfterAnimating(I)V
iget-object p3, p2, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animation:Landroid/view/animation/Animation;
if-eqz p3, :cond_0
new-instance p2, Landroidx/fragment/app/FragmentManagerImpl$EndViewTransitionAnimation;
invoke-direct {p2, p3, v1, v0}, Landroidx/fragment/app/FragmentManagerImpl$EndViewTransitionAnimation;-><init>(Landroid/view/animation/Animation;Landroid/view/ViewGroup;Landroid/view/View;)V
iget-object p3, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {p1, p3}, Landroidx/fragment/app/Fragment;->setAnimatingAway(Landroid/view/View;)V
new-instance p3, Landroidx/fragment/app/FragmentManagerImpl$3;
invoke-direct {p3, p0, v1, p1}, Landroidx/fragment/app/FragmentManagerImpl$3;-><init>(Landroidx/fragment/app/FragmentManagerImpl;Landroid/view/ViewGroup;Landroidx/fragment/app/Fragment;)V
invoke-virtual {p2, p3}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
iget-object p1, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {p1, p2}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
goto :goto_0
:cond_0
iget-object p2, p2, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animator:Landroid/animation/Animator;
invoke-virtual {p1, p2}, Landroidx/fragment/app/Fragment;->setAnimator(Landroid/animation/Animator;)V
new-instance p3, Landroidx/fragment/app/FragmentManagerImpl$4;
invoke-direct {p3, p0, v1, v0, p1}, Landroidx/fragment/app/FragmentManagerImpl$4;-><init>(Landroidx/fragment/app/FragmentManagerImpl;Landroid/view/ViewGroup;Landroid/view/View;Landroidx/fragment/app/Fragment;)V
invoke-virtual {p2, p3}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
iget-object p1, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {p2, p1}, Landroid/animation/Animator;->setTarget(Ljava/lang/Object;)V
invoke-virtual {p2}, Landroid/animation/Animator;->start()V
:goto_0
return-void
.end method
.method private burpActive()V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
const/4 v1, 0x0
invoke-static {v1}, Ljava/util/Collections;->singleton(Ljava/lang/Object;)Ljava/util/Set;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Collection;->removeAll(Ljava/util/Collection;)Z
return-void
.end method
.method private checkStateLoss()V
.locals 2
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->isStateSaved()Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Can not perform this action after onSaveInstanceState"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private cleanupExec()V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpIsPop:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpRecords:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
return-void
.end method
.method private dispatchParentPrimaryNavigationFragmentChanged(Landroidx/fragment/app/Fragment;)V
.locals 2
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
if-eqz p1, :cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-ne v0, p1, :cond_0
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->performPrimaryNavigationFragmentChanged()V
:cond_0
return-void
.end method
.method private dispatchStateChange(I)V
.locals 2
const/4 v0, 0x1
const/4 v1, 0x0
:try_start_0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
invoke-virtual {p0, p1, v1}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(IZ)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iput-boolean v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->execPendingActions()Z
return-void
:catchall_0
move-exception p1
iput-boolean v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
throw p1
.end method
.method private endAnimatingAwayFragments()V
.locals 8
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
move-object v3, v1
check-cast v3, Landroidx/fragment/app/Fragment;
if-eqz v3, :cond_0
invoke-virtual {v3}, Landroidx/fragment/app/Fragment;->getAnimatingAway()Landroid/view/View;
move-result-object v1
if-eqz v1, :cond_2
invoke-virtual {v3}, Landroidx/fragment/app/Fragment;->getStateAfterAnimating()I
move-result v4
invoke-virtual {v3}, Landroidx/fragment/app/Fragment;->getAnimatingAway()Landroid/view/View;
move-result-object v1
invoke-virtual {v1}, Landroid/view/View;->getAnimation()Landroid/view/animation/Animation;
move-result-object v2
if-eqz v2, :cond_1
invoke-virtual {v2}, Landroid/view/animation/Animation;->cancel()V
invoke-virtual {v1}, Landroid/view/View;->clearAnimation()V
:cond_1
const/4 v1, 0x0
invoke-virtual {v3, v1}, Landroidx/fragment/app/Fragment;->setAnimatingAway(Landroid/view/View;)V
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
move-object v2, p0
invoke-virtual/range {v2 .. v7}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
goto :goto_0
:cond_2
invoke-virtual {v3}, Landroidx/fragment/app/Fragment;->getAnimator()Landroid/animation/Animator;
move-result-object v1
if-eqz v1, :cond_0
invoke-virtual {v3}, Landroidx/fragment/app/Fragment;->getAnimator()Landroid/animation/Animator;
move-result-object v1
invoke-virtual {v1}, Landroid/animation/Animator;->end()V
goto :goto_0
:cond_3
return-void
.end method
.method private ensureExecReady(Z)V
.locals 2
iget-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
if-nez v0, :cond_4
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
if-eqz v0, :cond_3
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object v0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v1}, Landroidx/fragment/app/FragmentHostCallback;->getHandler()Landroid/os/Handler;
move-result-object v1
invoke-virtual {v1}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;
move-result-object v1
if-ne v0, v1, :cond_2
if-nez p1, :cond_0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->checkStateLoss()V
:cond_0
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpRecords:Ljava/util/ArrayList;
if-nez p1, :cond_1
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpRecords:Ljava/util/ArrayList;
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpIsPop:Ljava/util/ArrayList;
:cond_1
const/4 p1, 0x1
iput-boolean p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
const/4 p1, 0x0
const/4 v0, 0x0
:try_start_0
invoke-direct {p0, v0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->executePostponedTransaction(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iput-boolean p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
return-void
:catchall_0
move-exception v0
iput-boolean p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
throw v0
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Must be called from main thread of fragment host"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Fragment host has been destroyed"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "FragmentManager is already executing transactions"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public static executeOps(Ljava/util/ArrayList;Ljava/util/ArrayList;II)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;",
"Ljava/util/ArrayList<",
"Ljava/lang/Boolean;",
">;II)V"
}
.end annotation
:goto_0
if-ge p2, p3, :cond_2
invoke-virtual {p0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/BackStackRecord;
invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
const/4 v2, 0x1
if-eqz v1, :cond_1
const/4 v1, -0x1
invoke-virtual {v0, v1}, Landroidx/fragment/app/BackStackRecord;->bumpBackStackNesting(I)V
add-int/lit8 v1, p3, -0x1
if-ne p2, v1, :cond_0
goto :goto_1
:cond_0
const/4 v2, 0x0
:goto_1
invoke-virtual {v0, v2}, Landroidx/fragment/app/BackStackRecord;->executePopOps(Z)V
goto :goto_2
:cond_1
invoke-virtual {v0, v2}, Landroidx/fragment/app/BackStackRecord;->bumpBackStackNesting(I)V
invoke-virtual {v0}, Landroidx/fragment/app/BackStackRecord;->executeOps()V
:goto_2
add-int/lit8 p2, p2, 0x1
goto :goto_0
:cond_2
return-void
.end method
.method private executeOpsTogether(Ljava/util/ArrayList;Ljava/util/ArrayList;II)V
.locals 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;",
"Ljava/util/ArrayList<",
"Ljava/lang/Boolean;",
">;II)V"
}
.end annotation
move-object v6, p0
move-object/from16 v7, p1
move-object/from16 v8, p2
move/from16 v9, p3
move/from16 v10, p4
invoke-virtual {v7, v9}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/BackStackRecord;
iget-boolean v11, v0, Landroidx/fragment/app/FragmentTransaction;->mReorderingAllowed:Z
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mTmpAddedFragments:Ljava/util/ArrayList;
if-nez v0, :cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mTmpAddedFragments:Ljava/util/ArrayList;
goto :goto_0
:cond_0
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
:goto_0
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mTmpAddedFragments:Ljava/util/ArrayList;
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->getPrimaryNavigationFragment()Landroidx/fragment/app/Fragment;
move-result-object v0
const/4 v1, 0x0
move-object v2, v0
move v0, v9
const/4 v12, 0x0
:goto_1
const/4 v13, 0x1
if-ge v0, v10, :cond_4
invoke-virtual {v7, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/BackStackRecord;
invoke-virtual {v8, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Boolean;
invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z
move-result v4
if-nez v4, :cond_1
iget-object v4, v6, Landroidx/fragment/app/FragmentManagerImpl;->mTmpAddedFragments:Ljava/util/ArrayList;
invoke-virtual {v3, v4, v2}, Landroidx/fragment/app/BackStackRecord;->expandOps(Ljava/util/ArrayList;Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/Fragment;
move-result-object v2
goto :goto_2
:cond_1
iget-object v4, v6, Landroidx/fragment/app/FragmentManagerImpl;->mTmpAddedFragments:Ljava/util/ArrayList;
invoke-virtual {v3, v4, v2}, Landroidx/fragment/app/BackStackRecord;->trackAddedFragmentsInPop(Ljava/util/ArrayList;Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/Fragment;
move-result-object v2
:goto_2
if-nez v12, :cond_3
iget-boolean v3, v3, Landroidx/fragment/app/FragmentTransaction;->mAddToBackStack:Z
if-eqz v3, :cond_2
goto :goto_3
:cond_2
const/4 v12, 0x0
goto :goto_4
:cond_3
:goto_3
const/4 v12, 0x1
:goto_4
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_4
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mTmpAddedFragments:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
if-nez v11, :cond_5
const/4 v5, 0x0
move-object v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p2
move/from16 v3, p3
move/from16 v4, p4
invoke-static/range {v0 .. v5}, Landroidx/fragment/app/FragmentTransition;->startTransitions(Landroidx/fragment/app/FragmentManagerImpl;Ljava/util/ArrayList;Ljava/util/ArrayList;IIZ)V
:cond_5
invoke-static/range {p1 .. p4}, Landroidx/fragment/app/FragmentManagerImpl;->executeOps(Ljava/util/ArrayList;Ljava/util/ArrayList;II)V
if-eqz v11, :cond_6
new-instance v14, Landroidx/collection/ArraySet;
invoke-direct {v14}, Landroidx/collection/ArraySet;-><init>()V
invoke-direct {p0, v14}, Landroidx/fragment/app/FragmentManagerImpl;->addAddedFragments(Landroidx/collection/ArraySet;)V
move-object v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p2
move/from16 v3, p3
move/from16 v4, p4
move-object v5, v14
invoke-direct/range {v0 .. v5}, Landroidx/fragment/app/FragmentManagerImpl;->postponePostponableTransactions(Ljava/util/ArrayList;Ljava/util/ArrayList;IILandroidx/collection/ArraySet;)I
move-result v0
invoke-direct {p0, v14}, Landroidx/fragment/app/FragmentManagerImpl;->makeRemovedFragmentsInvisible(Landroidx/collection/ArraySet;)V
move v4, v0
goto :goto_5
:cond_6
move v4, v10
:goto_5
if-eq v4, v9, :cond_7
if-eqz v11, :cond_7
const/4 v5, 0x1
move-object v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p2
move/from16 v3, p3
invoke-static/range {v0 .. v5}, Landroidx/fragment/app/FragmentTransition;->startTransitions(Landroidx/fragment/app/FragmentManagerImpl;Ljava/util/ArrayList;Ljava/util/ArrayList;IIZ)V
iget v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
invoke-virtual {p0, v0, v13}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(IZ)V
:cond_7
:goto_6
if-ge v9, v10, :cond_9
invoke-virtual {v7, v9}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/BackStackRecord;
invoke-virtual {v8, v9}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-eqz v1, :cond_8
iget v1, v0, Landroidx/fragment/app/BackStackRecord;->mIndex:I
if-ltz v1, :cond_8
invoke-virtual {p0, v1}, Landroidx/fragment/app/FragmentManagerImpl;->freeBackStackIndex(I)V
const/4 v1, -0x1
iput v1, v0, Landroidx/fragment/app/BackStackRecord;->mIndex:I
:cond_8
invoke-virtual {v0}, Landroidx/fragment/app/BackStackRecord;->runOnCommitRunnables()V
add-int/lit8 v9, v9, 0x1
goto :goto_6
:cond_9
if-eqz v12, :cond_a
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->reportBackStackChanged()V
:cond_a
return-void
.end method
.method private executePostponedTransaction(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;",
"Ljava/util/ArrayList<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
const/4 v1, 0x0
if-nez v0, :cond_0
const/4 v0, 0x0
goto :goto_0
:cond_0
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
:goto_0
move v2, v0
const/4 v0, 0x0
:goto_1
if-ge v0, v2, :cond_5
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;
const/4 v4, -0x1
if-eqz p1, :cond_1
iget-boolean v5, v3, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->mIsBack:Z
if-nez v5, :cond_1
iget-object v5, v3, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->mRecord:Landroidx/fragment/app/BackStackRecord;
invoke-virtual {p1, v5}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I
move-result v5
if-eq v5, v4, :cond_1
invoke-virtual {p2, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/Boolean;
invoke-virtual {v5}, Ljava/lang/Boolean;->booleanValue()Z
move-result v5
if-eqz v5, :cond_1
iget-object v4, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
invoke-virtual {v4, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
add-int/lit8 v0, v0, -0x1
add-int/lit8 v2, v2, -0x1
invoke-virtual {v3}, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->cancelTransaction()V
goto :goto_2
:cond_1
invoke-virtual {v3}, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->isReady()Z
move-result v5
if-nez v5, :cond_2
if-eqz p1, :cond_4
iget-object v5, v3, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->mRecord:Landroidx/fragment/app/BackStackRecord;
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result v6
invoke-virtual {v5, p1, v1, v6}, Landroidx/fragment/app/BackStackRecord;->interactsWith(Ljava/util/ArrayList;II)Z
move-result v5
if-eqz v5, :cond_4
:cond_2
iget-object v5, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
invoke-virtual {v5, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
add-int/lit8 v0, v0, -0x1
add-int/lit8 v2, v2, -0x1
if-eqz p1, :cond_3
iget-boolean v5, v3, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->mIsBack:Z
if-nez v5, :cond_3
iget-object v5, v3, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->mRecord:Landroidx/fragment/app/BackStackRecord;
invoke-virtual {p1, v5}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I
move-result v5
if-eq v5, v4, :cond_3
invoke-virtual {p2, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Boolean;
invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z
move-result v4
if-eqz v4, :cond_3
invoke-virtual {v3}, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->cancelTransaction()V
goto :goto_2
:cond_3
invoke-virtual {v3}, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->completeTransaction()V
:cond_4
:goto_2
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_5
return-void
.end method
.method private findFragmentUnder(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/Fragment;
.locals 4
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
const/4 v2, 0x0
if-eqz v0, :cond_2
if-nez v1, :cond_0
goto :goto_1
:cond_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I
move-result p1
add-int/lit8 p1, p1, -0x1
:goto_0
if-ltz p1, :cond_2
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
iget-object v3, v1, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
if-ne v3, v0, :cond_1
iget-object v3, v1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v3, :cond_1
return-object v1
:cond_1
add-int/lit8 p1, p1, -0x1
goto :goto_0
:cond_2
:goto_1
return-object v2
.end method
.method private forcePostponedTransactions()V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
if-eqz v0, :cond_0
:goto_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;->completeTransaction()V
goto :goto_0
:cond_0
return-void
.end method
.method private generateOpsForPendingActions(Ljava/util/ArrayList;Ljava/util/ArrayList;)Z
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;",
"Ljava/util/ArrayList<",
"Ljava/lang/Boolean;",
">;)Z"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
const/4 v1, 0x0
if-eqz v0, :cond_2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-nez v0, :cond_0
goto :goto_1
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
const/4 v2, 0x0
:goto_0
if-ge v1, v0, :cond_1
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;
invoke-interface {v3, p1, p2}, Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;->generateOps(Ljava/util/ArrayList;Ljava/util/ArrayList;)Z
move-result v3
or-int/2addr v2, v3
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
invoke-virtual {p1}, Ljava/util/ArrayList;->clear()V
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->getHandler()Landroid/os/Handler;
move-result-object p1
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecCommit:Ljava/lang/Runnable;
invoke-virtual {p1, p2}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
monitor-exit p0
return v2
:cond_2
:goto_1
monitor-exit p0
return v1
:catchall_0
move-exception p1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method private isMenuAvailable(Landroidx/fragment/app/Fragment;)Z
.locals 1
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHasMenu:Z
if-eqz v0, :cond_0
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mMenuVisible:Z
if-nez v0, :cond_1
:cond_0
iget-object p1, p1, Landroidx/fragment/app/Fragment;->mChildFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
invoke-virtual {p1}, Landroidx/fragment/app/FragmentManagerImpl;->checkForMenus()Z
move-result p1
if-eqz p1, :cond_2
:cond_1
const/4 p1, 0x1
goto :goto_0
:cond_2
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public static makeFadeAnimation(FF)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
.locals 1
new-instance v0, Landroid/view/animation/AlphaAnimation;
invoke-direct {v0, p0, p1}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V
sget-object p0, Landroidx/fragment/app/FragmentManagerImpl;->DECELERATE_CUBIC:Landroid/view/animation/Interpolator;
invoke-virtual {v0, p0}, Landroid/view/animation/AlphaAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V
const-wide/16 p0, 0xdc
invoke-virtual {v0, p0, p1}, Landroid/view/animation/AlphaAnimation;->setDuration(J)V
new-instance p0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;-><init>(Landroid/view/animation/Animation;)V
return-object p0
.end method
.method public static makeOpenCloseAnimation(FFFF)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
.locals 11
new-instance v0, Landroid/view/animation/AnimationSet;
const/4 v1, 0x0
invoke-direct {v0, v1}, Landroid/view/animation/AnimationSet;-><init>(Z)V
new-instance v1, Landroid/view/animation/ScaleAnimation;
const/4 v7, 0x1
const/high16 v8, 0x3f000000 # 0.5f
const/4 v9, 0x1
const/high16 v10, 0x3f000000 # 0.5f
move-object v2, v1
move v3, p0
move v4, p1
move v5, p0
move v6, p1
invoke-direct/range {v2 .. v10}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V
sget-object p0, Landroidx/fragment/app/FragmentManagerImpl;->DECELERATE_QUINT:Landroid/view/animation/Interpolator;
invoke-virtual {v1, p0}, Landroid/view/animation/ScaleAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V
const-wide/16 p0, 0xdc
invoke-virtual {v1, p0, p1}, Landroid/view/animation/ScaleAnimation;->setDuration(J)V
invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V
new-instance v1, Landroid/view/animation/AlphaAnimation;
invoke-direct {v1, p2, p3}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V
sget-object p2, Landroidx/fragment/app/FragmentManagerImpl;->DECELERATE_CUBIC:Landroid/view/animation/Interpolator;
invoke-virtual {v1, p2}, Landroid/view/animation/AlphaAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V
invoke-virtual {v1, p0, p1}, Landroid/view/animation/AlphaAnimation;->setDuration(J)V
invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V
new-instance p0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;-><init>(Landroid/view/animation/Animation;)V
return-object p0
.end method
.method private makeRemovedFragmentsInvisible(Landroidx/collection/ArraySet;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/collection/ArraySet<",
"Landroidx/fragment/app/Fragment;",
">;)V"
}
.end annotation
invoke-virtual {p1}, Landroidx/collection/ArraySet;->size()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_1
invoke-virtual {p1, v1}, Landroidx/collection/ArraySet;->valueAt(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/fragment/app/Fragment;
iget-boolean v3, v2, Landroidx/fragment/app/Fragment;->mAdded:Z
if-nez v3, :cond_0
invoke-virtual {v2}, Landroidx/fragment/app/Fragment;->requireView()Landroid/view/View;
move-result-object v3
invoke-virtual {v3}, Landroid/view/View;->getAlpha()F
move-result v4
iput v4, v2, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F
const/4 v2, 0x0
invoke-virtual {v3, v2}, Landroid/view/View;->setAlpha(F)V
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method private popBackStackImmediate(Ljava/lang/String;II)Z
.locals 8
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->execPendingActions()Z
const/4 v0, 0x1
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->ensureExecReady(Z)V
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPrimaryNav:Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
if-gez p2, :cond_0
if-nez p1, :cond_0
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v1
invoke-virtual {v1}, Landroidx/fragment/app/FragmentManager;->popBackStackImmediate()Z
move-result v1
if-eqz v1, :cond_0
return v0
:cond_0
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpRecords:Ljava/util/ArrayList;
iget-object v4, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpIsPop:Ljava/util/ArrayList;
move-object v2, p0
move-object v5, p1
move v6, p2
move v7, p3
invoke-virtual/range {v2 .. v7}, Landroidx/fragment/app/FragmentManagerImpl;->popBackStackState(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;II)Z
move-result p1
if-eqz p1, :cond_1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
:try_start_0
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpRecords:Ljava/util/ArrayList;
iget-object p3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpIsPop:Ljava/util/ArrayList;
invoke-direct {p0, p2, p3}, Landroidx/fragment/app/FragmentManagerImpl;->removeRedundantOperationsAndExecute(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->cleanupExec()V
goto :goto_0
:catchall_0
move-exception p1
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->cleanupExec()V
throw p1
:cond_1
:goto_0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->updateOnBackPressedCallbackEnabled()V
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->doPendingDeferredStart()V
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->burpActive()V
return p1
.end method
.method private postponePostponableTransactions(Ljava/util/ArrayList;Ljava/util/ArrayList;IILandroidx/collection/ArraySet;)I
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;",
"Ljava/util/ArrayList<",
"Ljava/lang/Boolean;",
">;II",
"Landroidx/collection/ArraySet<",
"Landroidx/fragment/app/Fragment;",
">;)I"
}
.end annotation
add-int/lit8 v0, p4, -0x1
move v1, p4
:goto_0
if-lt v0, p3, :cond_5
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/fragment/app/BackStackRecord;
invoke-virtual {p2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Boolean;
invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z
move-result v3
invoke-virtual {v2}, Landroidx/fragment/app/BackStackRecord;->isPostponed()Z
move-result v4
const/4 v5, 0x0
if-eqz v4, :cond_0
add-int/lit8 v4, v0, 0x1
invoke-virtual {v2, p1, v4, p4}, Landroidx/fragment/app/BackStackRecord;->interactsWith(Ljava/util/ArrayList;II)Z
move-result v4
if-nez v4, :cond_0
const/4 v4, 0x1
goto :goto_1
:cond_0
const/4 v4, 0x0
:goto_1
if-eqz v4, :cond_4
iget-object v4, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
if-nez v4, :cond_1
new-instance v4, Ljava/util/ArrayList;
invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V
iput-object v4, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
:cond_1
new-instance v4, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;
invoke-direct {v4, v2, v3}, Landroidx/fragment/app/FragmentManagerImpl$StartEnterTransitionListener;-><init>(Landroidx/fragment/app/BackStackRecord;Z)V
iget-object v6, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
invoke-virtual {v6, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-virtual {v2, v4}, Landroidx/fragment/app/BackStackRecord;->setOnStartPostponedListener(Landroidx/fragment/app/Fragment$OnStartEnterTransitionListener;)V
if-eqz v3, :cond_2
invoke-virtual {v2}, Landroidx/fragment/app/BackStackRecord;->executeOps()V
goto :goto_2
:cond_2
invoke-virtual {v2, v5}, Landroidx/fragment/app/BackStackRecord;->executePopOps(Z)V
:goto_2
add-int/lit8 v1, v1, -0x1
if-eq v0, v1, :cond_3
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
invoke-virtual {p1, v1, v2}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V
:cond_3
invoke-direct {p0, p5}, Landroidx/fragment/app/FragmentManagerImpl;->addAddedFragments(Landroidx/collection/ArraySet;)V
:cond_4
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_5
return v1
.end method
.method private removeRedundantOperationsAndExecute(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;",
"Ljava/util/ArrayList<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
if-eqz p1, :cond_7
invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_2
:cond_0
if-eqz p2, :cond_6
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result v0
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result v1
if-ne v0, v1, :cond_6
invoke-direct {p0, p1, p2}, Landroidx/fragment/app/FragmentManagerImpl;->executePostponedTransaction(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v1, v0, :cond_4
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/BackStackRecord;
iget-boolean v3, v3, Landroidx/fragment/app/FragmentTransaction;->mReorderingAllowed:Z
if-nez v3, :cond_3
if-eq v2, v1, :cond_1
invoke-direct {p0, p1, p2, v2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->executeOpsTogether(Ljava/util/ArrayList;Ljava/util/ArrayList;II)V
:cond_1
add-int/lit8 v2, v1, 0x1
invoke-virtual {p2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Boolean;
invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z
move-result v3
if-eqz v3, :cond_2
:goto_1
if-ge v2, v0, :cond_2
invoke-virtual {p2, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Boolean;
invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z
move-result v3
if-eqz v3, :cond_2
invoke-virtual {p1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/BackStackRecord;
iget-boolean v3, v3, Landroidx/fragment/app/FragmentTransaction;->mReorderingAllowed:Z
if-nez v3, :cond_2
add-int/lit8 v2, v2, 0x1
goto :goto_1
:cond_2
invoke-direct {p0, p1, p2, v1, v2}, Landroidx/fragment/app/FragmentManagerImpl;->executeOpsTogether(Ljava/util/ArrayList;Ljava/util/ArrayList;II)V
add-int/lit8 v1, v2, -0x1
:cond_3
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_4
if-eq v2, v0, :cond_5
invoke-direct {p0, p1, p2, v2, v0}, Landroidx/fragment/app/FragmentManagerImpl;->executeOpsTogether(Ljava/util/ArrayList;Ljava/util/ArrayList;II)V
:cond_5
return-void
:cond_6
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Internal error with the back stack records"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_7
:goto_2
return-void
.end method
.method public static reverseTransit(I)I
.locals 3
const/16 v0, 0x2002
const/16 v1, 0x1003
const/16 v2, 0x1001
if-eq p0, v2, :cond_2
if-eq p0, v1, :cond_1
if-eq p0, v0, :cond_0
const/4 v0, 0x0
goto :goto_0
:cond_0
const/16 v0, 0x1001
goto :goto_0
:cond_1
const/16 v0, 0x1003
:cond_2
:goto_0
return v0
.end method
.method private throwException(Ljava/lang/RuntimeException;)V
.locals 7
invoke-virtual {p1}, Ljava/lang/RuntimeException;->getMessage()Ljava/lang/String;
move-result-object v0
const-string v1, "FragmentManager"
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const-string v0, "Activity state:"
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
new-instance v0, Landroidx/core/util/LogWriter;
invoke-direct {v0, v1}, Landroidx/core/util/LogWriter;-><init>(Ljava/lang/String;)V
new-instance v2, Ljava/io/PrintWriter;
invoke-direct {v2, v0}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
const-string v3, "Failed dumping state"
const/4 v4, 0x0
const/4 v5, 0x0
const-string v6, " "
if-eqz v0, :cond_0
:try_start_0
new-array v4, v4, [Ljava/lang/String;
invoke-virtual {v0, v6, v5, v2, v4}, Landroidx/fragment/app/FragmentHostCallback;->onDump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
invoke-static {v1, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_0
:cond_0
:try_start_1
new-array v0, v4, [Ljava/lang/String;
invoke-virtual {p0, v6, v5, v2, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
goto :goto_0
:catch_1
move-exception v0
invoke-static {v1, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_0
throw p1
.end method
.method public static transitToStyleIndex(IZ)I
.locals 1
const/16 v0, 0x1001
if-eq p0, v0, :cond_4
const/16 v0, 0x1003
if-eq p0, v0, :cond_2
const/16 v0, 0x2002
if-eq p0, v0, :cond_0
const/4 p0, -0x1
goto :goto_0
:cond_0
if-eqz p1, :cond_1
const/4 p0, 0x3
goto :goto_0
:cond_1
const/4 p0, 0x4
goto :goto_0
:cond_2
if-eqz p1, :cond_3
const/4 p0, 0x5
goto :goto_0
:cond_3
const/4 p0, 0x6
goto :goto_0
:cond_4
if-eqz p1, :cond_5
const/4 p0, 0x1
goto :goto_0
:cond_5
const/4 p0, 0x2
:goto_0
return p0
.end method
.method private updateOnBackPressedCallbackEnabled()V
.locals 3
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
const/4 v1, 0x1
if-eqz v0, :cond_0
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedCallback:Landroidx/activity/OnBackPressedCallback;
invoke-virtual {v0, v1}, Landroidx/activity/OnBackPressedCallback;->setEnabled(Z)V
return-void
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedCallback:Landroidx/activity/OnBackPressedCallback;
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->getBackStackEntryCount()I
move-result v2
if-lez v2, :cond_1
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
invoke-virtual {p0, v2}, Landroidx/fragment/app/FragmentManagerImpl;->isPrimaryNavigation(Landroidx/fragment/app/Fragment;)Z
move-result v2
if-eqz v2, :cond_1
goto :goto_0
:cond_1
const/4 v1, 0x0
:goto_0
invoke-virtual {v0, v1}, Landroidx/activity/OnBackPressedCallback;->setEnabled(Z)V
return-void
.end method
# virtual methods
.method public addBackStackState(Landroidx/fragment/app/BackStackRecord;)V
.locals 1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
if-nez v0, :cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public addFragment(Landroidx/fragment/app/Fragment;Z)V
.locals 3
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_0
const-string v0, "add: "
const-string v1, "FragmentManager"
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_0
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->makeActive(Landroidx/fragment/app/Fragment;)V
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mDetached:Z
if-nez v0, :cond_4
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_3
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
monitor-enter v0
:try_start_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 v0, 0x1
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mAdded:Z
const/4 v1, 0x0
iput-boolean v1, p1, Landroidx/fragment/app/Fragment;->mRemoving:Z
iget-object v2, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-nez v2, :cond_1
iput-boolean v1, p1, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z
:cond_1
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->isMenuAvailable(Landroidx/fragment/app/Fragment;)Z
move-result v1
if-eqz v1, :cond_2
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNeedMenuInvalidate:Z
:cond_2
if-eqz p2, :cond_4
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;)V
goto :goto_0
:catchall_0
move-exception p1
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
:cond_3
new-instance p2, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Fragment already added: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p2
:cond_4
:goto_0
return-void
.end method
.method public addOnBackStackChangedListener(Landroidx/fragment/app/FragmentManager$OnBackStackChangedListener;)V
.locals 1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackChangeListeners:Ljava/util/ArrayList;
if-nez v0, :cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackChangeListeners:Ljava/util/ArrayList;
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackChangeListeners:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public addRetainedFragment(Landroidx/fragment/app/Fragment;)V
.locals 2
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->isStateSaved()Z
move-result v0
const-string v1, "FragmentManager"
if-eqz v0, :cond_1
sget-boolean p1, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz p1, :cond_0
const-string p1, "Ignoring addRetainedFragment as the state is already saved"
invoke-static {v1, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
return-void
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v0, p1}, Landroidx/fragment/app/FragmentManagerViewModel;->addRetainedFragment(Landroidx/fragment/app/Fragment;)Z
move-result v0
if-eqz v0, :cond_2
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_2
const-string v0, "Updating retained Fragments: Added "
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_2
return-void
.end method
.method public allocBackStackIndex(Landroidx/fragment/app/BackStackRecord;)I
.locals 4
monitor-enter p0
:try_start_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
if-eqz v0, :cond_2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-gtz v0, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
add-int/lit8 v1, v1, -0x1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
sget-boolean v1, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v1, :cond_1
const-string v1, "FragmentManager"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Adding back stack index "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v3, " with "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v1, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {v1, v0, p1}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
monitor-exit p0
return v0
:cond_2
:goto_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
if-nez v0, :cond_3
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
:cond_3
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
sget-boolean v1, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v1, :cond_4
const-string v1, "FragmentManager"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Setting back stack index "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v3, " to "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v1, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_4
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
monitor-exit p0
return v0
:catchall_0
move-exception p1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public attachController(Landroidx/fragment/app/FragmentHostCallback;Landroidx/fragment/app/FragmentContainer;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/FragmentContainer;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
if-nez v0, :cond_5
iput-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
iput-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mContainer:Landroidx/fragment/app/FragmentContainer;
iput-object p3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz p2, :cond_0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->updateOnBackPressedCallbackEnabled()V
:cond_0
instance-of p2, p1, Landroidx/activity/OnBackPressedDispatcherOwner;
if-eqz p2, :cond_2
move-object p2, p1
check-cast p2, Landroidx/activity/OnBackPressedDispatcherOwner;
invoke-interface {p2}, Landroidx/activity/OnBackPressedDispatcherOwner;->getOnBackPressedDispatcher()Landroidx/activity/OnBackPressedDispatcher;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedDispatcher:Landroidx/activity/OnBackPressedDispatcher;
if-eqz p3, :cond_1
move-object p2, p3
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedDispatcher:Landroidx/activity/OnBackPressedDispatcher;
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedCallback:Landroidx/activity/OnBackPressedCallback;
invoke-virtual {v0, p2, v1}, Landroidx/activity/OnBackPressedDispatcher;->addCallback(Landroidx/lifecycle/LifecycleOwner;Landroidx/activity/OnBackPressedCallback;)V
:cond_2
if-eqz p3, :cond_3
iget-object p1, p3, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
invoke-virtual {p1, p3}, Landroidx/fragment/app/FragmentManagerImpl;->getChildNonConfig(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentManagerViewModel;
move-result-object p1
iput-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
goto :goto_0
:cond_3
instance-of p2, p1, Landroidx/lifecycle/ViewModelStoreOwner;
if-eqz p2, :cond_4
check-cast p1, Landroidx/lifecycle/ViewModelStoreOwner;
invoke-interface {p1}, Landroidx/lifecycle/ViewModelStoreOwner;->getViewModelStore()Landroidx/lifecycle/ViewModelStore;
move-result-object p1
invoke-static {p1}, Landroidx/fragment/app/FragmentManagerViewModel;->getInstance(Landroidx/lifecycle/ViewModelStore;)Landroidx/fragment/app/FragmentManagerViewModel;
move-result-object p1
iput-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
goto :goto_0
:cond_4
new-instance p1, Landroidx/fragment/app/FragmentManagerViewModel;
const/4 p2, 0x0
invoke-direct {p1, p2}, Landroidx/fragment/app/FragmentManagerViewModel;-><init>(Z)V
iput-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
:goto_0
return-void
:cond_5
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Already attached"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public attachFragment(Landroidx/fragment/app/Fragment;)V
.locals 3
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_0
const-string v0, "attach: "
const-string v1, "FragmentManager"
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_0
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mDetached:Z
if-eqz v0, :cond_3
const/4 v0, 0x0
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mDetached:Z
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mAdded:Z
if-nez v0, :cond_3
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_2
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_1
const-string v0, "add from attach: "
const-string v1, "FragmentManager"
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
monitor-enter v0
:try_start_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 v0, 0x1
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mAdded:Z
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->isMenuAvailable(Landroidx/fragment/app/Fragment;)Z
move-result p1
if-eqz p1, :cond_3
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNeedMenuInvalidate:Z
goto :goto_0
:catchall_0
move-exception p1
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
:cond_2
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Fragment already added: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
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/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_3
:goto_0
return-void
.end method
.method public beginTransaction()Landroidx/fragment/app/FragmentTransaction;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Landroidx/fragment/app/BackStackRecord;
invoke-direct {v0, p0}, Landroidx/fragment/app/BackStackRecord;-><init>(Landroidx/fragment/app/FragmentManagerImpl;)V
return-object v0
.end method
.method public checkForMenus()Z
.locals 4
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
const/4 v1, 0x0
const/4 v2, 0x0
:cond_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_2
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/Fragment;
if-eqz v3, :cond_1
invoke-direct {p0, v3}, Landroidx/fragment/app/FragmentManagerImpl;->isMenuAvailable(Landroidx/fragment/app/Fragment;)Z
move-result v2
:cond_1
if-eqz v2, :cond_0
const/4 v0, 0x1
return v0
:cond_2
return v1
.end method
.method public completeExecute(Landroidx/fragment/app/BackStackRecord;ZZZ)V
.locals 7
if-eqz p2, :cond_0
invoke-virtual {p1, p4}, Landroidx/fragment/app/BackStackRecord;->executePopOps(Z)V
goto :goto_0
:cond_0
invoke-virtual {p1}, Landroidx/fragment/app/BackStackRecord;->executeOps()V
:goto_0
new-instance v1, Ljava/util/ArrayList;
const/4 v6, 0x1
invoke-direct {v1, v6}, Ljava/util/ArrayList;-><init>(I)V
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2, v6}, Ljava/util/ArrayList;-><init>(I)V
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p2
invoke-virtual {v2, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
if-eqz p3, :cond_1
const/4 v3, 0x0
const/4 v4, 0x1
const/4 v5, 0x1
move-object v0, p0
invoke-static/range {v0 .. v5}, Landroidx/fragment/app/FragmentTransition;->startTransitions(Landroidx/fragment/app/FragmentManagerImpl;Ljava/util/ArrayList;Ljava/util/ArrayList;IIZ)V
:cond_1
if-eqz p4, :cond_2
iget p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
invoke-virtual {p0, p2, v6}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(IZ)V
:cond_2
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {p2}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object p2
invoke-interface {p2}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p2
:cond_3
:goto_1
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result p3
if-eqz p3, :cond_6
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p3
check-cast p3, Landroidx/fragment/app/Fragment;
if-eqz p3, :cond_3
iget-object v0, p3, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v0, :cond_3
iget-boolean v0, p3, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z
if-eqz v0, :cond_3
iget v0, p3, Landroidx/fragment/app/Fragment;->mContainerId:I
invoke-virtual {p1, v0}, Landroidx/fragment/app/BackStackRecord;->interactsWith(I)Z
move-result v0
if-eqz v0, :cond_3
iget v0, p3, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F
const/4 v1, 0x0
cmpl-float v2, v0, v1
if-lez v2, :cond_4
iget-object v2, p3, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v2, v0}, Landroid/view/View;->setAlpha(F)V
:cond_4
if-eqz p4, :cond_5
iput v1, p3, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F
goto :goto_1
:cond_5
const/high16 v0, -0x40800000 # -1.0f
iput v0, p3, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F
const/4 v0, 0x0
iput-boolean v0, p3, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z
goto :goto_1
:cond_6
return-void
.end method
.method public completeShowHideFragment(Landroidx/fragment/app/Fragment;)V
.locals 7
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
const/4 v1, 0x1
const/4 v2, 0x0
if-eqz v0, :cond_5
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getNextTransition()I
move-result v0
iget-boolean v3, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
xor-int/2addr v3, v1
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getNextTransitionStyle()I
move-result v4
invoke-virtual {p0, p1, v0, v3, v4}, Landroidx/fragment/app/FragmentManagerImpl;->loadAnimation(Landroidx/fragment/app/Fragment;IZI)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
move-result-object v0
if-eqz v0, :cond_2
iget-object v3, v0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animator:Landroid/animation/Animator;
if-eqz v3, :cond_2
iget-object v4, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v3, v4}, Landroid/animation/Animator;->setTarget(Ljava/lang/Object;)V
iget-boolean v3, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
if-eqz v3, :cond_1
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->isHideReplaced()Z
move-result v3
if-eqz v3, :cond_0
invoke-virtual {p1, v2}, Landroidx/fragment/app/Fragment;->setHideReplaced(Z)V
goto :goto_0
:cond_0
iget-object v3, p1, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
iget-object v4, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v3, v4}, Landroid/view/ViewGroup;->startViewTransition(Landroid/view/View;)V
iget-object v5, v0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animator:Landroid/animation/Animator;
new-instance v6, Landroidx/fragment/app/FragmentManagerImpl$5;
invoke-direct {v6, p0, v3, v4, p1}, Landroidx/fragment/app/FragmentManagerImpl$5;-><init>(Landroidx/fragment/app/FragmentManagerImpl;Landroid/view/ViewGroup;Landroid/view/View;Landroidx/fragment/app/Fragment;)V
invoke-virtual {v5, v6}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
goto :goto_0
:cond_1
iget-object v3, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v3, v2}, Landroid/view/View;->setVisibility(I)V
:goto_0
iget-object v0, v0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animator:Landroid/animation/Animator;
invoke-virtual {v0}, Landroid/animation/Animator;->start()V
goto :goto_2
:cond_2
if-eqz v0, :cond_3
iget-object v3, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
iget-object v4, v0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animation:Landroid/view/animation/Animation;
invoke-virtual {v3, v4}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
iget-object v0, v0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animation:Landroid/view/animation/Animation;
invoke-virtual {v0}, Landroid/view/animation/Animation;->start()V
:cond_3
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
if-eqz v0, :cond_4
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->isHideReplaced()Z
move-result v0
if-nez v0, :cond_4
const/16 v0, 0x8
goto :goto_1
:cond_4
const/4 v0, 0x0
:goto_1
iget-object v3, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v3, v0}, Landroid/view/View;->setVisibility(I)V
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->isHideReplaced()Z
move-result v0
if-eqz v0, :cond_5
invoke-virtual {p1, v2}, Landroidx/fragment/app/Fragment;->setHideReplaced(Z)V
:cond_5
:goto_2
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mAdded:Z
if-eqz v0, :cond_6
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->isMenuAvailable(Landroidx/fragment/app/Fragment;)Z
move-result v0
if-eqz v0, :cond_6
iput-boolean v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNeedMenuInvalidate:Z
:cond_6
iput-boolean v2, p1, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
invoke-virtual {p1, v0}, Landroidx/fragment/app/Fragment;->onHiddenChanged(Z)V
return-void
.end method
.method public detachFragment(Landroidx/fragment/app/Fragment;)V
.locals 3
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_0
const-string v0, "detach: "
const-string v1, "FragmentManager"
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_0
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mDetached:Z
if-nez v0, :cond_3
const/4 v0, 0x1
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mDetached:Z
iget-boolean v1, p1, Landroidx/fragment/app/Fragment;->mAdded:Z
if-eqz v1, :cond_3
sget-boolean v1, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v1, :cond_1
const-string v1, "remove from detach: "
const-string v2, "FragmentManager"
invoke-static {v1, p1, v2}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
monitor-enter v1
:try_start_0
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v2, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->isMenuAvailable(Landroidx/fragment/app/Fragment;)Z
move-result v1
if-eqz v1, :cond_2
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNeedMenuInvalidate:Z
:cond_2
const/4 v0, 0x0
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mAdded:Z
goto :goto_0
:catchall_0
move-exception p1
:try_start_1
monitor-exit v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
:cond_3
:goto_0
return-void
.end method
.method public dispatchActivityCreated()V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateSaved:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStopped:Z
const/4 v0, 0x2
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchStateChange(I)V
return-void
.end method
.method public dispatchConfigurationChanged(Landroid/content/res/Configuration;)V
.locals 2
.param p1 # Landroid/content/res/Configuration;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
:goto_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-ge v0, v1, :cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
invoke-virtual {v1, p1}, Landroidx/fragment/app/Fragment;->performConfigurationChanged(Landroid/content/res/Configuration;)V
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public dispatchContextItemSelected(Landroid/view/MenuItem;)Z
.locals 4
.param p1 # Landroid/view/MenuItem;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v1, 0x0
const/4 v2, 0x1
if-ge v0, v2, :cond_0
return v1
:cond_0
const/4 v0, 0x0
:goto_0
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
move-result v3
if-ge v0, v3, :cond_2
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/Fragment;
if-eqz v3, :cond_1
invoke-virtual {v3, p1}, Landroidx/fragment/app/Fragment;->performContextItemSelected(Landroid/view/MenuItem;)Z
move-result v3
if-eqz v3, :cond_1
return v2
:cond_1
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_2
return v1
.end method
.method public dispatchCreate()V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateSaved:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStopped:Z
const/4 v0, 0x1
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchStateChange(I)V
return-void
.end method
.method public dispatchCreateOptionsMenu(Landroid/view/Menu;Landroid/view/MenuInflater;)Z
.locals 7
.param p1 # Landroid/view/Menu;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/view/MenuInflater;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v1, 0x0
const/4 v2, 0x1
if-ge v0, v2, :cond_0
return v1
:cond_0
const/4 v0, 0x0
move-object v3, v0
const/4 v0, 0x0
const/4 v4, 0x0
:goto_0
iget-object v5, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v5}, Ljava/util/ArrayList;->size()I
move-result v5
if-ge v0, v5, :cond_3
iget-object v5, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v5, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Landroidx/fragment/app/Fragment;
if-eqz v5, :cond_2
invoke-virtual {v5, p1, p2}, Landroidx/fragment/app/Fragment;->performCreateOptionsMenu(Landroid/view/Menu;Landroid/view/MenuInflater;)Z
move-result v6
if-eqz v6, :cond_2
if-nez v3, :cond_1
new-instance v3, Ljava/util/ArrayList;
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
:cond_1
invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
const/4 v4, 0x1
:cond_2
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_3
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCreatedMenus:Ljava/util/ArrayList;
if-eqz p1, :cond_6
:goto_1
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCreatedMenus:Ljava/util/ArrayList;
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result p1
if-ge v1, p1, :cond_6
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCreatedMenus:Ljava/util/ArrayList;
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroidx/fragment/app/Fragment;
if-eqz v3, :cond_4
invoke-virtual {v3, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_5
:cond_4
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->onDestroyOptionsMenu()V
:cond_5
add-int/lit8 v1, v1, 0x1
goto :goto_1
:cond_6
iput-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCreatedMenus:Ljava/util/ArrayList;
return v4
.end method
.method public dispatchDestroy()V
.locals 2
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mDestroyed:Z
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->execPendingActions()Z
const/4 v0, 0x0
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchStateChange(I)V
const/4 v0, 0x0
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mContainer:Landroidx/fragment/app/FragmentContainer;
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedDispatcher:Landroidx/activity/OnBackPressedDispatcher;
if-eqz v1, :cond_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedCallback:Landroidx/activity/OnBackPressedCallback;
invoke-virtual {v1}, Landroidx/activity/OnBackPressedCallback;->remove()V
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedDispatcher:Landroidx/activity/OnBackPressedDispatcher;
:cond_0
return-void
.end method
.method public dispatchDestroyView()V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchStateChange(I)V
return-void
.end method
.method public dispatchLowMemory()V
.locals 2
const/4 v0, 0x0
:goto_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-ge v0, v1, :cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->performLowMemory()V
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public dispatchMultiWindowModeChanged(Z)V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
invoke-virtual {v1, p1}, Landroidx/fragment/app/Fragment;->performMultiWindowModeChanged(Z)V
:cond_0
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_1
return-void
.end method
.method public dispatchOnFragmentActivityCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, p2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentActivityCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p3, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1, p2}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentActivityCreated(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;Landroid/os/Bundle;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentAttached(Landroidx/fragment/app/Fragment;Landroid/content/Context;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, p2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentAttached(Landroidx/fragment/app/Fragment;Landroid/content/Context;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p3, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1, p2}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentAttached(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;Landroid/content/Context;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, p2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p3, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1, p2}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentCreated(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;Landroid/os/Bundle;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentDestroyed(Landroidx/fragment/app/Fragment;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentDestroyed(Landroidx/fragment/app/Fragment;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p2, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentDestroyed(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentDetached(Landroidx/fragment/app/Fragment;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentDetached(Landroidx/fragment/app/Fragment;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p2, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentDetached(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentPaused(Landroidx/fragment/app/Fragment;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentPaused(Landroidx/fragment/app/Fragment;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p2, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentPaused(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentPreAttached(Landroidx/fragment/app/Fragment;Landroid/content/Context;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, p2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentPreAttached(Landroidx/fragment/app/Fragment;Landroid/content/Context;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p3, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1, p2}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentPreAttached(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;Landroid/content/Context;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentPreCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, p2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentPreCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p3, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1, p2}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentPreCreated(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;Landroid/os/Bundle;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentResumed(Landroidx/fragment/app/Fragment;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentResumed(Landroidx/fragment/app/Fragment;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p2, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentResumed(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentSaveInstanceState(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, p2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentSaveInstanceState(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p3, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1, p2}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentSaveInstanceState(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;Landroid/os/Bundle;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentStarted(Landroidx/fragment/app/Fragment;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentStarted(Landroidx/fragment/app/Fragment;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p2, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentStarted(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentStopped(Landroidx/fragment/app/Fragment;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentStopped(Landroidx/fragment/app/Fragment;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p2, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentStopped(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentViewCreated(Landroidx/fragment/app/Fragment;Landroid/view/View;Landroid/os/Bundle;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, p2, p3, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentViewCreated(Landroidx/fragment/app/Fragment;Landroid/view/View;Landroid/os/Bundle;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p4, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1, p2, p3}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentViewCreated(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;Landroid/view/View;Landroid/os/Bundle;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOnFragmentViewDestroyed(Landroidx/fragment/app/Fragment;Z)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
instance-of v1, v0, Landroidx/fragment/app/FragmentManagerImpl;
if-eqz v1, :cond_0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl;
const/4 v1, 0x1
invoke-virtual {v0, p1, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentViewDestroyed(Landroidx/fragment/app/Fragment;Z)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
if-eqz p2, :cond_2
iget-boolean v2, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mRecursive:Z
if-eqz v2, :cond_1
:cond_2
iget-object v1, v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
invoke-virtual {v1, p0, p1}, Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;->onFragmentViewDestroyed(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;)V
goto :goto_0
:cond_3
return-void
.end method
.method public dispatchOptionsItemSelected(Landroid/view/MenuItem;)Z
.locals 4
.param p1 # Landroid/view/MenuItem;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v1, 0x0
const/4 v2, 0x1
if-ge v0, v2, :cond_0
return v1
:cond_0
const/4 v0, 0x0
:goto_0
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
move-result v3
if-ge v0, v3, :cond_2
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/Fragment;
if-eqz v3, :cond_1
invoke-virtual {v3, p1}, Landroidx/fragment/app/Fragment;->performOptionsItemSelected(Landroid/view/MenuItem;)Z
move-result v3
if-eqz v3, :cond_1
return v2
:cond_1
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_2
return v1
.end method
.method public dispatchOptionsMenuClosed(Landroid/view/Menu;)V
.locals 2
.param p1 # Landroid/view/Menu;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v1, 0x1
if-ge v0, v1, :cond_0
return-void
:cond_0
const/4 v0, 0x0
:goto_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-ge v0, v1, :cond_2
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_1
invoke-virtual {v1, p1}, Landroidx/fragment/app/Fragment;->performOptionsMenuClosed(Landroid/view/Menu;)V
:cond_1
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_2
return-void
.end method
.method public dispatchPause()V
.locals 1
const/4 v0, 0x3
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchStateChange(I)V
return-void
.end method
.method public dispatchPictureInPictureModeChanged(Z)V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
invoke-virtual {v1, p1}, Landroidx/fragment/app/Fragment;->performPictureInPictureModeChanged(Z)V
:cond_0
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_1
return-void
.end method
.method public dispatchPrepareOptionsMenu(Landroid/view/Menu;)Z
.locals 4
.param p1 # Landroid/view/Menu;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v1, 0x0
const/4 v2, 0x1
if-ge v0, v2, :cond_0
return v1
:cond_0
const/4 v0, 0x0
:goto_0
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
move-result v3
if-ge v1, v3, :cond_2
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/Fragment;
if-eqz v3, :cond_1
invoke-virtual {v3, p1}, Landroidx/fragment/app/Fragment;->performPrepareOptionsMenu(Landroid/view/Menu;)Z
move-result v3
if-eqz v3, :cond_1
const/4 v0, 0x1
:cond_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
return v0
.end method
.method public dispatchPrimaryNavigationFragmentChanged()V
.locals 1
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->updateOnBackPressedCallbackEnabled()V
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPrimaryNav:Landroidx/fragment/app/Fragment;
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchParentPrimaryNavigationFragmentChanged(Landroidx/fragment/app/Fragment;)V
return-void
.end method
.method public dispatchResume()V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateSaved:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStopped:Z
const/4 v0, 0x4
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchStateChange(I)V
return-void
.end method
.method public dispatchStart()V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateSaved:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStopped:Z
const/4 v0, 0x3
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchStateChange(I)V
return-void
.end method
.method public dispatchStop()V
.locals 1
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStopped:Z
const/4 v0, 0x2
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchStateChange(I)V
return-void
.end method
.method public doPendingDeferredStart()V
.locals 1
iget-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHavePendingDeferredStart:Z
if-eqz v0, :cond_0
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHavePendingDeferredStart:Z
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->startPendingDeferredFragments()V
:cond_0
return-void
.end method
.method public dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
.locals 4
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/io/FileDescriptor;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Ljava/io/PrintWriter;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # [Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
const-string v0, " "
invoke-static {p1, v0}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v1}, Ljava/util/HashMap;->isEmpty()Z
move-result v1
if-nez v1, :cond_1
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v1, "Active Fragments in "
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v1, ":"
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v1}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v1
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_0
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/fragment/app/Fragment;
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {p3, v2}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
if-eqz v2, :cond_0
invoke-virtual {v2, v0, p2, p3, p4}, Landroidx/fragment/app/Fragment;->dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
goto :goto_0
:cond_1
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result p2
const/4 p4, 0x0
if-lez p2, :cond_2
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v1, "Added Fragments:"
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
const/4 v1, 0x0
:goto_1
if-ge v1, p2, :cond_2
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/fragment/app/Fragment;
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v3, " #"
invoke-virtual {p3, v3}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(I)V
const-string v3, ": "
invoke-virtual {p3, v3}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {v2}, Landroidx/fragment/app/Fragment;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {p3, v2}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
add-int/lit8 v1, v1, 0x1
goto :goto_1
:cond_2
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCreatedMenus:Ljava/util/ArrayList;
if-eqz p2, :cond_3
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result p2
if-lez p2, :cond_3
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v1, "Fragments Created Menus:"
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
const/4 v1, 0x0
:goto_2
if-ge v1, p2, :cond_3
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCreatedMenus:Ljava/util/ArrayList;
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/fragment/app/Fragment;
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v3, " #"
invoke-virtual {p3, v3}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(I)V
const-string v3, ": "
invoke-virtual {p3, v3}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {v2}, Landroidx/fragment/app/Fragment;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {p3, v2}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
add-int/lit8 v1, v1, 0x1
goto :goto_2
:cond_3
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
if-eqz p2, :cond_4
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result p2
if-lez p2, :cond_4
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v1, "Back Stack:"
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
const/4 v1, 0x0
:goto_3
if-ge v1, p2, :cond_4
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/fragment/app/BackStackRecord;
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v3, " #"
invoke-virtual {p3, v3}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(I)V
const-string v3, ": "
invoke-virtual {p3, v3}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {v2}, Landroidx/fragment/app/BackStackRecord;->toString()Ljava/lang/String;
move-result-object v3
invoke-virtual {p3, v3}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
invoke-virtual {v2, v0, p3}, Landroidx/fragment/app/BackStackRecord;->dump(Ljava/lang/String;Ljava/io/PrintWriter;)V
add-int/lit8 v1, v1, 0x1
goto :goto_3
:cond_4
monitor-enter p0
:try_start_0
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
if-eqz p2, :cond_5
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result p2
if-lez p2, :cond_5
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v0, "Back Stack Indices:"
invoke-virtual {p3, v0}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
const/4 v0, 0x0
:goto_4
if-ge v0, p2, :cond_5
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/BackStackRecord;
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v2, " #"
invoke-virtual {p3, v2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {p3, v0}, Ljava/io/PrintWriter;->print(I)V
const-string v2, ": "
invoke-virtual {p3, v2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
add-int/lit8 v0, v0, 0x1
goto :goto_4
:cond_5
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
if-eqz p2, :cond_6
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result p2
if-lez p2, :cond_6
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p2, "mAvailBackStackIndices: "
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {p2}, Ljava/util/ArrayList;->toArray()[Ljava/lang/Object;
move-result-object p2
invoke-static {p2}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
:cond_6
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
if-eqz p2, :cond_7
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result p2
if-lez p2, :cond_7
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v0, "Pending Actions:"
invoke-virtual {p3, v0}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
:goto_5
if-ge p4, p2, :cond_7
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
invoke-virtual {v0, p4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v1, " #"
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {p3, p4}, Ljava/io/PrintWriter;->print(I)V
const-string v1, ": "
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-virtual {p3, v0}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
add-int/lit8 p4, p4, 0x1
goto :goto_5
:cond_7
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p2, "FragmentManager misc state:"
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p2, " mHost="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p2, " mContainer="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mContainer:Landroidx/fragment/app/FragmentContainer;
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz p2, :cond_8
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p2, " mParent="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
:cond_8
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p2, " mCurState="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(I)V
const-string p2, " mStateSaved="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateSaved:Z
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Z)V
const-string p2, " mStopped="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStopped:Z
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Z)V
const-string p2, " mDestroyed="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mDestroyed:Z
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Z)V
iget-boolean p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNeedMenuInvalidate:Z
if-eqz p2, :cond_9
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p1, " mNeedMenuInvalidate="
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNeedMenuInvalidate:Z
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->println(Z)V
:cond_9
return-void
:catchall_0
move-exception p1
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public enqueueAction(Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;Z)V
.locals 1
if-nez p2, :cond_0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->checkStateLoss()V
:cond_0
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mDestroyed:Z
if-nez v0, :cond_3
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
if-nez v0, :cond_1
goto :goto_0
:cond_1
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
if-nez p2, :cond_2
new-instance p2, Ljava/util/ArrayList;
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
iput-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
:cond_2
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
invoke-virtual {p2, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->scheduleCommit()V
monitor-exit p0
return-void
:cond_3
:goto_0
if-eqz p2, :cond_4
monitor-exit p0
return-void
:cond_4
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Activity has been destroyed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_0
move-exception p1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public ensureInflatedFragmentView(Landroidx/fragment/app/Fragment;)V
.locals 3
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mFromLayout:Z
if-eqz v0, :cond_2
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mPerformedCreateView:Z
if-nez v0, :cond_2
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {p1, v0}, Landroidx/fragment/app/Fragment;->performGetLayoutInflater(Landroid/os/Bundle;)Landroid/view/LayoutInflater;
move-result-object v0
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
const/4 v2, 0x0
invoke-virtual {p1, v0, v2, v1}, Landroidx/fragment/app/Fragment;->performCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)V
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v0, :cond_1
iput-object v0, p1, Landroidx/fragment/app/Fragment;->mInnerView:Landroid/view/View;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/view/View;->setSaveFromParentEnabled(Z)V
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
if-eqz v0, :cond_0
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
const/16 v2, 0x8
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
:cond_0
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 v0, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
iget-object v2, p1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {p0, p1, v0, v2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentViewCreated(Landroidx/fragment/app/Fragment;Landroid/view/View;Landroid/os/Bundle;Z)V
goto :goto_0
:cond_1
iput-object v2, p1, Landroidx/fragment/app/Fragment;->mInnerView:Landroid/view/View;
:cond_2
:goto_0
return-void
.end method
.method public execPendingActions()Z
.locals 4
const/4 v0, 0x1
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->ensureExecReady(Z)V
const/4 v1, 0x0
:goto_0
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpRecords:Ljava/util/ArrayList;
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpIsPop:Ljava/util/ArrayList;
invoke-direct {p0, v2, v3}, Landroidx/fragment/app/FragmentManagerImpl;->generateOpsForPendingActions(Ljava/util/ArrayList;Ljava/util/ArrayList;)Z
move-result v2
if-eqz v2, :cond_0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
:try_start_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpRecords:Ljava/util/ArrayList;
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpIsPop:Ljava/util/ArrayList;
invoke-direct {p0, v1, v2}, Landroidx/fragment/app/FragmentManagerImpl;->removeRedundantOperationsAndExecute(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->cleanupExec()V
const/4 v1, 0x1
goto :goto_0
:catchall_0
move-exception v0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->cleanupExec()V
throw v0
:cond_0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->updateOnBackPressedCallbackEnabled()V
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->doPendingDeferredStart()V
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->burpActive()V
return v1
.end method
.method public execSingleAction(Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;Z)V
.locals 1
if-eqz p2, :cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
if-eqz v0, :cond_0
iget-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mDestroyed:Z
if-eqz v0, :cond_1
:cond_0
return-void
:cond_1
invoke-direct {p0, p2}, Landroidx/fragment/app/FragmentManagerImpl;->ensureExecReady(Z)V
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpRecords:Ljava/util/ArrayList;
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpIsPop:Ljava/util/ArrayList;
invoke-interface {p1, p2, v0}, Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;->generateOps(Ljava/util/ArrayList;Ljava/util/ArrayList;)Z
move-result p1
if-eqz p1, :cond_2
const/4 p1, 0x1
iput-boolean p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
:try_start_0
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpRecords:Ljava/util/ArrayList;
iget-object p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mTmpIsPop:Ljava/util/ArrayList;
invoke-direct {p0, p1, p2}, Landroidx/fragment/app/FragmentManagerImpl;->removeRedundantOperationsAndExecute(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->cleanupExec()V
goto :goto_0
:catchall_0
move-exception p1
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->cleanupExec()V
throw p1
:cond_2
:goto_0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->updateOnBackPressedCallbackEnabled()V
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->doPendingDeferredStart()V
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->burpActive()V
return-void
.end method
.method public executePendingTransactions()Z
.locals 1
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->execPendingActions()Z
move-result v0
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->forcePostponedTransactions()V
return v0
.end method
.method public findFragmentById(I)Landroidx/fragment/app/Fragment;
.locals 3
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
iget v2, v1, Landroidx/fragment/app/Fragment;->mFragmentId:I
if-ne v2, p1, :cond_0
return-object v1
:cond_0
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_2
iget v2, v1, Landroidx/fragment/app/Fragment;->mFragmentId:I
if-ne v2, p1, :cond_2
return-object v1
:cond_3
const/4 p1, 0x0
return-object p1
.end method
.method public findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
.locals 3
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
if-eqz p1, :cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
iget-object v2, v1, Landroidx/fragment/app/Fragment;->mTag:Ljava/lang/String;
invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_0
return-object v1
:cond_0
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_1
if-eqz p1, :cond_3
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_2
iget-object v2, v1, Landroidx/fragment/app/Fragment;->mTag:Ljava/lang/String;
invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2
return-object v1
:cond_3
const/4 p1, 0x0
return-object p1
.end method
.method public findFragmentByWho(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
.locals 2
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
invoke-virtual {v1, p1}, Landroidx/fragment/app/Fragment;->findFragmentByWho(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object v1
if-eqz v1, :cond_0
return-object v1
:cond_1
const/4 p1, 0x0
return-object p1
.end method
.method public freeBackStackIndex(I)V
.locals 3
monitor-enter p0
:try_start_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
const/4 v1, 0x0
invoke-virtual {v0, p1, v1}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
if-nez v0, :cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
:cond_0
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_1
const-string v0, "FragmentManager"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Freeing back stack index "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public getActiveFragmentCount()I
.locals 1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->size()I
move-result v0
return v0
.end method
.method public getActiveFragments()Ljava/util/List;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Landroidx/fragment/app/Fragment;",
">;"
}
.end annotation
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v1}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
return-object v0
.end method
.method public getBackStackEntryAt(I)Landroidx/fragment/app/FragmentManager$BackStackEntry;
.locals 1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroidx/fragment/app/FragmentManager$BackStackEntry;
return-object p1
.end method
.method public getBackStackEntryCount()I
.locals 1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
if-eqz v0, :cond_0
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public getChildNonConfig(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentManagerViewModel;
.locals 1
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v0, p1}, Landroidx/fragment/app/FragmentManagerViewModel;->getChildNonConfig(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentManagerViewModel;
move-result-object p1
return-object p1
.end method
.method public getFragment(Landroid/os/Bundle;Ljava/lang/String;)Landroidx/fragment/app/Fragment;
.locals 4
.annotation build Landroidx/annotation/Nullable;
.end annotation
invoke-virtual {p1, p2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
if-nez p1, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/Fragment;
if-nez v0, :cond_1
new-instance v1, Ljava/lang/IllegalStateException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Fragment no longer exists for key "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p2, ": unique id "
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v1, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v1}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_1
return-object v0
.end method
.method public getFragmentFactory()Landroidx/fragment/app/FragmentFactory;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
invoke-super {p0}, Landroidx/fragment/app/FragmentManager;->getFragmentFactory()Landroidx/fragment/app/FragmentFactory;
move-result-object v0
sget-object v1, Landroidx/fragment/app/FragmentManager;->DEFAULT_FACTORY:Landroidx/fragment/app/FragmentFactory;
if-ne v0, v1, :cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_0
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManagerImpl;->getFragmentFactory()Landroidx/fragment/app/FragmentFactory;
move-result-object v0
return-object v0
:cond_0
new-instance v0, Landroidx/fragment/app/FragmentManagerImpl$6;
invoke-direct {v0, p0}, Landroidx/fragment/app/FragmentManagerImpl$6;-><init>(Landroidx/fragment/app/FragmentManagerImpl;)V
invoke-virtual {p0, v0}, Landroidx/fragment/app/FragmentManager;->setFragmentFactory(Landroidx/fragment/app/FragmentFactory;)V
:cond_1
invoke-super {p0}, Landroidx/fragment/app/FragmentManager;->getFragmentFactory()Landroidx/fragment/app/FragmentFactory;
move-result-object v0
return-object v0
.end method
.method public getFragments()Ljava/util/List;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Landroidx/fragment/app/Fragment;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
return-object v0
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
monitor-enter v0
:try_start_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->clone()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/List;
monitor-exit v0
return-object v1
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public getLayoutInflaterFactory()Landroid/view/LayoutInflater$Factory2;
.locals 0
return-object p0
.end method
.method public getPrimaryNavigationFragment()Landroidx/fragment/app/Fragment;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPrimaryNav:Landroidx/fragment/app/Fragment;
return-object v0
.end method
.method public getViewModelStore(Landroidx/fragment/app/Fragment;)Landroidx/lifecycle/ViewModelStore;
.locals 1
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v0, p1}, Landroidx/fragment/app/FragmentManagerViewModel;->getViewModelStore(Landroidx/fragment/app/Fragment;)Landroidx/lifecycle/ViewModelStore;
move-result-object p1
return-object p1
.end method
.method public handleOnBackPressed()V
.locals 1
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->execPendingActions()Z
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedCallback:Landroidx/activity/OnBackPressedCallback;
invoke-virtual {v0}, Landroidx/activity/OnBackPressedCallback;->isEnabled()Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->popBackStackImmediate()Z
goto :goto_0
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mOnBackPressedDispatcher:Landroidx/activity/OnBackPressedDispatcher;
invoke-virtual {v0}, Landroidx/activity/OnBackPressedDispatcher;->onBackPressed()V
:goto_0
return-void
.end method
.method public hideFragment(Landroidx/fragment/app/Fragment;)V
.locals 2
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_0
const-string v0, "hide: "
const-string v1, "FragmentManager"
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_0
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
if-nez v0, :cond_1
const/4 v0, 0x1
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
iget-boolean v1, p1, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z
xor-int/2addr v0, v1
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z
:cond_1
return-void
.end method
.method public isDestroyed()Z
.locals 1
iget-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mDestroyed:Z
return v0
.end method
.method public isPrimaryNavigation(Landroidx/fragment/app/Fragment;)Z
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
const/4 v0, 0x1
if-nez p1, :cond_0
return v0
:cond_0
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
invoke-virtual {v1}, Landroidx/fragment/app/FragmentManagerImpl;->getPrimaryNavigationFragment()Landroidx/fragment/app/Fragment;
move-result-object v2
if-ne p1, v2, :cond_1
iget-object p1, v1, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->isPrimaryNavigation(Landroidx/fragment/app/Fragment;)Z
move-result p1
if-eqz p1, :cond_1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isStateAtLeast(I)Z
.locals 1
iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
if-lt v0, p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public isStateSaved()Z
.locals 1
iget-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateSaved:Z
if-nez v0, :cond_1
iget-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStopped:Z
if-eqz v0, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 v0, 0x1
:goto_1
return v0
.end method
.method public loadAnimation(Landroidx/fragment/app/Fragment;IZI)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
.locals 5
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getNextAnim()I
move-result v0
const/4 v1, 0x0
invoke-virtual {p1, v1}, Landroidx/fragment/app/Fragment;->setNextAnim(I)V
iget-object v2, p1, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
const/4 v3, 0x0
if-eqz v2, :cond_0
invoke-virtual {v2}, Landroid/view/ViewGroup;->getLayoutTransition()Landroid/animation/LayoutTransition;
move-result-object v2
if-eqz v2, :cond_0
return-object v3
:cond_0
invoke-virtual {p1, p2, p3, v0}, Landroidx/fragment/app/Fragment;->onCreateAnimation(IZI)Landroid/view/animation/Animation;
move-result-object v2
if-eqz v2, :cond_1
new-instance p1, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
invoke-direct {p1, v2}, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;-><init>(Landroid/view/animation/Animation;)V
return-object p1
:cond_1
invoke-virtual {p1, p2, p3, v0}, Landroidx/fragment/app/Fragment;->onCreateAnimator(IZI)Landroid/animation/Animator;
move-result-object p1
if-eqz p1, :cond_2
new-instance p2, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
invoke-direct {p2, p1}, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;-><init>(Landroid/animation/Animator;)V
return-object p2
:cond_2
if-eqz v0, :cond_6
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object p1
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p1
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getResourceTypeName(I)Ljava/lang/String;
move-result-object p1
const-string v2, "anim"
invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_4
:try_start_0
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v2}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v2
invoke-static {v2, v0}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v2
if-eqz v2, :cond_3
new-instance v4, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
invoke-direct {v4, v2}, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;-><init>(Landroid/view/animation/Animation;)V
:try_end_0
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
return-object v4
:cond_3
const/4 v1, 0x1
goto :goto_0
:catch_0
nop
goto :goto_0
:catch_1
move-exception p1
throw p1
:cond_4
:goto_0
if-nez v1, :cond_6
:try_start_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1, v0}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator;
move-result-object v1
if-eqz v1, :cond_6
new-instance v2, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
invoke-direct {v2, v1}, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;-><init>(Landroid/animation/Animator;)V
:try_end_1
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_2
return-object v2
:catch_2
move-exception v1
if-nez p1, :cond_5
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object p1
invoke-static {p1, v0}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object p1
if-eqz p1, :cond_6
new-instance p2, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
invoke-direct {p2, p1}, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;-><init>(Landroid/view/animation/Animation;)V
return-object p2
:cond_5
throw v1
:cond_6
if-nez p2, :cond_7
return-object v3
:cond_7
invoke-static {p2, p3}, Landroidx/fragment/app/FragmentManagerImpl;->transitToStyleIndex(IZ)I
move-result p1
if-gez p1, :cond_8
return-object v3
:cond_8
const p2, 0x3f79999a # 0.975f
const/4 p3, 0x0
const/high16 v0, 0x3f800000 # 1.0f
packed-switch p1, :pswitch_data_0
if-nez p4, :cond_9
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->onHasWindowAnimations()Z
move-result p1
if-eqz p1, :cond_9
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->onGetWindowAnimations()I
move-result p4
goto :goto_1
:pswitch_0
invoke-static {v0, p3}, Landroidx/fragment/app/FragmentManagerImpl;->makeFadeAnimation(FF)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
move-result-object p1
return-object p1
:pswitch_1
invoke-static {p3, v0}, Landroidx/fragment/app/FragmentManagerImpl;->makeFadeAnimation(FF)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
move-result-object p1
return-object p1
:pswitch_2
const p1, 0x3f89999a # 1.075f
invoke-static {v0, p1, v0, p3}, Landroidx/fragment/app/FragmentManagerImpl;->makeOpenCloseAnimation(FFFF)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
move-result-object p1
return-object p1
:pswitch_3
invoke-static {p2, v0, p3, v0}, Landroidx/fragment/app/FragmentManagerImpl;->makeOpenCloseAnimation(FFFF)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
move-result-object p1
return-object p1
:pswitch_4
invoke-static {v0, p2, v0, p3}, Landroidx/fragment/app/FragmentManagerImpl;->makeOpenCloseAnimation(FFFF)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
move-result-object p1
return-object p1
:pswitch_5
const/high16 p1, 0x3f900000 # 1.125f
invoke-static {p1, v0, p3, v0}, Landroidx/fragment/app/FragmentManagerImpl;->makeOpenCloseAnimation(FFFF)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
move-result-object p1
return-object p1
:cond_9
:goto_1
if-nez p4, :cond_a
:cond_a
return-object v3
:pswitch_data_0
.packed-switch 0x1
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public makeActive(Landroidx/fragment/app/Fragment;)V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mRetainInstanceChangedWhileDetached:Z
if-eqz v0, :cond_2
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mRetainInstance:Z
if-eqz v0, :cond_1
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->addRetainedFragment(Landroidx/fragment/app/Fragment;)V
goto :goto_0
:cond_1
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->removeRetainedFragment(Landroidx/fragment/app/Fragment;)V
:goto_0
const/4 v0, 0x0
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mRetainInstanceChangedWhileDetached:Z
:cond_2
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_3
const-string v0, "Added fragment to active set "
const-string v1, "FragmentManager"
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_3
return-void
.end method
.method public makeInactive(Landroidx/fragment/app/Fragment;)V
.locals 5
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_0
return-void
:cond_0
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_1
const-string v0, "Removed fragment from active set "
const-string v1, "FragmentManager"
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_2
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_2
iget-object v3, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
iget-object v4, v1, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_2
iput-object p1, v1, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
iput-object v2, v1, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
goto :goto_0
:cond_3
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->removeRetainedFragment(Landroidx/fragment/app/Fragment;)V
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
if-eqz v0, :cond_4
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/Fragment;
iput-object v0, p1, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
:cond_4
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->initState()V
return-void
.end method
.method public moveFragmentToExpectedState(Landroidx/fragment/app/Fragment;)V
.locals 10
if-nez p1, :cond_0
return-void
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_2
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Ignoring moving "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p1, " to state "
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, "since it is not added to "
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "FragmentManager"
invoke-static {v0, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_1
return-void
:cond_2
iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
iget-boolean v1, p1, Landroidx/fragment/app/Fragment;->mRemoving:Z
const/4 v2, 0x1
const/4 v3, 0x0
if-eqz v1, :cond_4
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->isInBackStack()Z
move-result v1
if-eqz v1, :cond_3
invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I
move-result v0
goto :goto_0
:cond_3
invoke-static {v0, v3}, Ljava/lang/Math;->min(II)I
move-result v0
:cond_4
:goto_0
move v6, v0
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getNextTransition()I
move-result v7
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getNextTransitionStyle()I
move-result v8
const/4 v9, 0x0
move-object v4, p0
move-object v5, p1
invoke-virtual/range {v4 .. v9}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v0, :cond_8
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->findFragmentUnder(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/Fragment;
move-result-object v0
if-eqz v0, :cond_5
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->indexOfChild(Landroid/view/View;)I
move-result v0
iget-object v4, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v1, v4}, Landroid/view/ViewGroup;->indexOfChild(Landroid/view/View;)I
move-result v4
if-ge v4, v0, :cond_5
invoke-virtual {v1, v4}, Landroid/view/ViewGroup;->removeViewAt(I)V
iget-object v4, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v1, v4, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V
:cond_5
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z
if-eqz v0, :cond_8
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
if-eqz v0, :cond_8
iget v0, p1, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F
const/4 v1, 0x0
cmpl-float v4, v0, v1
if-lez v4, :cond_6
iget-object v4, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v4, v0}, Landroid/view/View;->setAlpha(F)V
:cond_6
iput v1, p1, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F
iput-boolean v3, p1, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getNextTransition()I
move-result v0
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getNextTransitionStyle()I
move-result v1
invoke-virtual {p0, p1, v0, v2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->loadAnimation(Landroidx/fragment/app/Fragment;IZI)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
move-result-object v0
if-eqz v0, :cond_8
iget-object v1, v0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animation:Landroid/view/animation/Animation;
if-eqz v1, :cond_7
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
goto :goto_1
:cond_7
iget-object v1, v0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animator:Landroid/animation/Animator;
iget-object v2, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v1, v2}, Landroid/animation/Animator;->setTarget(Ljava/lang/Object;)V
iget-object v0, v0, Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;->animator:Landroid/animation/Animator;
invoke-virtual {v0}, Landroid/animation/Animator;->start()V
:cond_8
:goto_1
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z
if-eqz v0, :cond_9
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->completeShowHideFragment(Landroidx/fragment/app/Fragment;)V
:cond_9
return-void
.end method
.method public moveToState(IZ)V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
if-nez v0, :cond_1
if-nez p1, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "No activity"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
:goto_0
if-nez p2, :cond_2
iget p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
if-ne p1, p2, :cond_2
return-void
:cond_2
iput p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result p1
const/4 p2, 0x0
const/4 v0, 0x0
:goto_1
if-ge v0, p1, :cond_3
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
invoke-virtual {p0, v1}, Landroidx/fragment/app/FragmentManagerImpl;->moveFragmentToExpectedState(Landroidx/fragment/app/Fragment;)V
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_3
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {p1}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object p1
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_4
:goto_2
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_6
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_4
iget-boolean v1, v0, Landroidx/fragment/app/Fragment;->mRemoving:Z
if-nez v1, :cond_5
iget-boolean v1, v0, Landroidx/fragment/app/Fragment;->mDetached:Z
if-eqz v1, :cond_4
:cond_5
iget-boolean v1, v0, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z
if-nez v1, :cond_4
invoke-virtual {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->moveFragmentToExpectedState(Landroidx/fragment/app/Fragment;)V
goto :goto_2
:cond_6
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->startPendingDeferredFragments()V
iget-boolean p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNeedMenuInvalidate:Z
if-eqz p1, :cond_7
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
if-eqz p1, :cond_7
iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v1, 0x4
if-ne v0, v1, :cond_7
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->onSupportInvalidateOptionsMenu()V
iput-boolean p2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNeedMenuInvalidate:Z
:cond_7
return-void
.end method
.method public moveToState(Landroidx/fragment/app/Fragment;)V
.locals 6
iget v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
move-object v0, p0
move-object v1, p1
invoke-virtual/range {v0 .. v5}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
return-void
.end method
.method public moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
.locals 16
move-object/from16 v6, p0
move-object/from16 v7, p1
iget-boolean v0, v7, Landroidx/fragment/app/Fragment;->mAdded:Z
const/4 v8, 0x1
if-eqz v0, :cond_1
iget-boolean v0, v7, Landroidx/fragment/app/Fragment;->mDetached:Z
if-eqz v0, :cond_0
goto :goto_0
:cond_0
move/from16 v0, p2
goto :goto_1
:cond_1
:goto_0
move/from16 v0, p2
if-le v0, v8, :cond_2
const/4 v0, 0x1
:cond_2
:goto_1
iget-boolean v1, v7, Landroidx/fragment/app/Fragment;->mRemoving:Z
if-eqz v1, :cond_4
iget v1, v7, Landroidx/fragment/app/Fragment;->mState:I
if-le v0, v1, :cond_4
if-nez v1, :cond_3
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->isInBackStack()Z
move-result v0
if-eqz v0, :cond_3
const/4 v0, 0x1
goto :goto_2
:cond_3
iget v0, v7, Landroidx/fragment/app/Fragment;->mState:I
:cond_4
:goto_2
iget-boolean v1, v7, Landroidx/fragment/app/Fragment;->mDeferStart:Z
const/4 v9, 0x3
const/4 v10, 0x2
if-eqz v1, :cond_5
iget v1, v7, Landroidx/fragment/app/Fragment;->mState:I
if-ge v1, v9, :cond_5
if-le v0, v10, :cond_5
const/4 v0, 0x2
:cond_5
iget-object v1, v7, Landroidx/fragment/app/Fragment;->mMaxState:Landroidx/lifecycle/Lifecycle$State;
sget-object v2, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State;
if-ne v1, v2, :cond_6
invoke-static {v0, v8}, Ljava/lang/Math;->min(II)I
move-result v0
goto :goto_3
:cond_6
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
move-result v0
:goto_3
move v11, v0
iget v0, v7, Landroidx/fragment/app/Fragment;->mState:I
const-string v12, "FragmentManager"
const/4 v13, 0x0
const/4 v14, 0x0
if-gt v0, v11, :cond_28
iget-boolean v0, v7, Landroidx/fragment/app/Fragment;->mFromLayout:Z
if-eqz v0, :cond_7
iget-boolean v0, v7, Landroidx/fragment/app/Fragment;->mInLayout:Z
if-nez v0, :cond_7
return-void
:cond_7
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getAnimatingAway()Landroid/view/View;
move-result-object v0
if-nez v0, :cond_8
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getAnimator()Landroid/animation/Animator;
move-result-object v0
if-eqz v0, :cond_9
:cond_8
invoke-virtual {v7, v14}, Landroidx/fragment/app/Fragment;->setAnimatingAway(Landroid/view/View;)V
invoke-virtual {v7, v14}, Landroidx/fragment/app/Fragment;->setAnimator(Landroid/animation/Animator;)V
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getStateAfterAnimating()I
move-result v2
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x1
move-object/from16 v0, p0
move-object/from16 v1, p1
invoke-virtual/range {v0 .. v5}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
:cond_9
iget v0, v7, Landroidx/fragment/app/Fragment;->mState:I
if-eqz v0, :cond_a
if-eq v0, v8, :cond_18
if-eq v0, v10, :cond_24
if-eq v0, v9, :cond_26
goto/16 :goto_17
:cond_a
if-lez v11, :cond_18
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_b
const-string v0, "moveto CREATED: "
invoke-static {v0, v7, v12}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_b
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
if-eqz v0, :cond_f
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/os/Bundle;->setClassLoader(Ljava/lang/ClassLoader;)V
iget-object v0, v7, 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, v7, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
const-string v1, "android:target_state"
invoke-virtual {v6, v0, v1}, Landroidx/fragment/app/FragmentManagerImpl;->getFragment(Landroid/os/Bundle;Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object v0
if-eqz v0, :cond_c
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
goto :goto_4
:cond_c
move-object v0, v14
:goto_4
iput-object v0, v7, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
if-eqz v0, :cond_d
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
const-string v1, "android:target_req_state"
invoke-virtual {v0, v1, v13}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v0
iput v0, v7, Landroidx/fragment/app/Fragment;->mTargetRequestCode:I
:cond_d
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedUserVisibleHint:Ljava/lang/Boolean;
if-eqz v0, :cond_e
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
iput-boolean v0, v7, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mSavedUserVisibleHint:Ljava/lang/Boolean;
goto :goto_5
:cond_e
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
const-string v1, "android:user_visible_hint"
invoke-virtual {v0, v1, v8}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, v7, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
:goto_5
iget-boolean v0, v7, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
if-nez v0, :cond_f
iput-boolean v8, v7, Landroidx/fragment/app/Fragment;->mDeferStart:Z
if-le v11, v10, :cond_f
const/4 v11, 0x2
:cond_f
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
iput-object v0, v7, Landroidx/fragment/app/Fragment;->mHost:Landroidx/fragment/app/FragmentHostCallback;
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
iput-object v1, v7, Landroidx/fragment/app/Fragment;->mParentFragment:Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_10
iget-object v0, v1, Landroidx/fragment/app/Fragment;->mChildFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
goto :goto_6
:cond_10
iget-object v0, v0, Landroidx/fragment/app/FragmentHostCallback;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
:goto_6
iput-object v0, v7, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
const-string v9, " that does not belong to this FragmentManager!"
const-string v10, " declared target fragment "
const-string v15, "Fragment "
if-eqz v0, :cond_13
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
iget-object v1, v7, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
if-ne v0, v1, :cond_12
iget v0, v1, Landroidx/fragment/app/Fragment;->mState:I
if-ge v0, v8, :cond_11
const/4 v2, 0x1
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x1
move-object/from16 v0, p0
invoke-virtual/range {v0 .. v5}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
:cond_11
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
iget-object v0, v0, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
iput-object v0, v7, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
goto :goto_7
:cond_12
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, v7, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_13
:goto_7
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
if-eqz v0, :cond_15
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_14
iget v0, v1, Landroidx/fragment/app/Fragment;->mState:I
if-ge v0, v8, :cond_15
const/4 v2, 0x1
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x1
move-object/from16 v0, p0
invoke-virtual/range {v0 .. v5}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
goto :goto_8
:cond_14
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, v7, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
invoke-static {v1, v2, v9}, Le/e/b/a/a;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_15
:goto_8
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v6, v7, v0, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentPreAttached(Landroidx/fragment/app/Fragment;Landroid/content/Context;Z)V
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->performAttach()V
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mParentFragment:Landroidx/fragment/app/Fragment;
if-nez v0, :cond_16
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v0, v7}, Landroidx/fragment/app/FragmentHostCallback;->onAttachFragment(Landroidx/fragment/app/Fragment;)V
goto :goto_9
:cond_16
invoke-virtual {v0, v7}, Landroidx/fragment/app/Fragment;->onAttachFragment(Landroidx/fragment/app/Fragment;)V
:goto_9
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v6, v7, v0, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentAttached(Landroidx/fragment/app/Fragment;Landroid/content/Context;Z)V
iget-boolean v0, v7, Landroidx/fragment/app/Fragment;->mIsCreated:Z
if-nez v0, :cond_17
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v6, v7, v0, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentPreCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v7, v0}, Landroidx/fragment/app/Fragment;->performCreate(Landroid/os/Bundle;)V
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v6, v7, v0, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
goto :goto_a
:cond_17
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v7, v0}, Landroidx/fragment/app/Fragment;->restoreChildFragmentState(Landroid/os/Bundle;)V
iput v8, v7, Landroidx/fragment/app/Fragment;->mState:I
:cond_18
:goto_a
if-lez v11, :cond_19
invoke-virtual/range {p0 .. p1}, Landroidx/fragment/app/FragmentManagerImpl;->ensureInflatedFragmentView(Landroidx/fragment/app/Fragment;)V
:cond_19
if-le v11, v8, :cond_24
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_1a
const-string v0, "moveto ACTIVITY_CREATED: "
invoke-static {v0, v7, v12}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_1a
iget-boolean v0, v7, Landroidx/fragment/app/Fragment;->mFromLayout:Z
if-nez v0, :cond_22
iget v0, v7, Landroidx/fragment/app/Fragment;->mContainerId:I
if-eqz v0, :cond_1c
const/4 v1, -0x1
if-ne v0, v1, :cond_1b
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Cannot create fragment "
const-string v2, " for a container view with no id"
invoke-static {v1, v7, v2}, Le/e/b/a/a;->a(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
invoke-direct {v6, v0}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_1b
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mContainer:Landroidx/fragment/app/FragmentContainer;
iget v1, v7, Landroidx/fragment/app/Fragment;->mContainerId:I
invoke-virtual {v0, v1}, Landroidx/fragment/app/FragmentContainer;->onFindViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
if-nez v0, :cond_1d
iget-boolean v1, v7, Landroidx/fragment/app/Fragment;->mRestored:Z
if-nez v1, :cond_1d
:try_start_0
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
move-result-object v1
iget v2, v7, Landroidx/fragment/app/Fragment;->mContainerId:I
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String;
move-result-object v1
:try_end_0
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_b
:catch_0
const-string v1, "unknown"
:goto_b
new-instance v2, Ljava/lang/IllegalArgumentException;
const-string v3, "No view found for id 0x"
invoke-static {v3}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget v4, v7, Landroidx/fragment/app/Fragment;->mContainerId:I
invoke-static {v4}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v4, " ("
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ") for fragment "
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
invoke-direct {v6, v2}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
goto :goto_c
:cond_1c
move-object v0, v14
:cond_1d
:goto_c
iput-object v0, v7, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
iget-object v1, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v7, v1}, Landroidx/fragment/app/Fragment;->performGetLayoutInflater(Landroid/os/Bundle;)Landroid/view/LayoutInflater;
move-result-object v1
iget-object v2, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v7, v1, v0, v2}, Landroidx/fragment/app/Fragment;->performCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)V
iget-object v1, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v1, :cond_21
iput-object v1, v7, Landroidx/fragment/app/Fragment;->mInnerView:Landroid/view/View;
invoke-virtual {v1, v13}, Landroid/view/View;->setSaveFromParentEnabled(Z)V
if-eqz v0, :cond_1e
iget-object v1, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
:cond_1e
iget-boolean v0, v7, Landroidx/fragment/app/Fragment;->mHidden:Z
if-eqz v0, :cond_1f
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
:cond_1f
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
iget-object v1, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v7, v0, v1}, Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
iget-object v1, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v6, v7, v0, v1, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentViewCreated(Landroidx/fragment/app/Fragment;Landroid/view/View;Landroid/os/Bundle;Z)V
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
move-result v0
if-nez v0, :cond_20
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
if-eqz v0, :cond_20
goto :goto_d
:cond_20
const/4 v8, 0x0
:goto_d
iput-boolean v8, v7, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z
goto :goto_e
:cond_21
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mInnerView:Landroid/view/View;
:cond_22
:goto_e
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v7, v0}, Landroidx/fragment/app/Fragment;->performActivityCreated(Landroid/os/Bundle;)V
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v6, v7, v0, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentActivityCreated(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v0, :cond_23
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v7, v0}, Landroidx/fragment/app/Fragment;->restoreViewState(Landroid/os/Bundle;)V
:cond_23
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
:cond_24
const/4 v0, 0x2
if-le v11, v0, :cond_26
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_25
const-string v0, "moveto STARTED: "
invoke-static {v0, v7, v12}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_25
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->performStart()V
invoke-virtual {v6, v7, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentStarted(Landroidx/fragment/app/Fragment;Z)V
:cond_26
const/4 v0, 0x3
if-le v11, v0, :cond_43
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_27
const-string v0, "moveto RESUMED: "
invoke-static {v0, v7, v12}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_27
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->performResume()V
invoke-virtual {v6, v7, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentResumed(Landroidx/fragment/app/Fragment;Z)V
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
goto/16 :goto_17
:cond_28
if-le v0, v11, :cond_43
if-eq v0, v8, :cond_34
const/4 v1, 0x2
if-eq v0, v1, :cond_2d
const/4 v1, 0x3
if-eq v0, v1, :cond_2b
const/4 v1, 0x4
if-eq v0, v1, :cond_29
goto/16 :goto_17
:cond_29
if-ge v11, v1, :cond_2b
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_2a
const-string v0, "movefrom RESUMED: "
invoke-static {v0, v7, v12}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_2a
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->performPause()V
invoke-virtual {v6, v7, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentPaused(Landroidx/fragment/app/Fragment;Z)V
:cond_2b
const/4 v0, 0x3
if-ge v11, v0, :cond_2d
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_2c
const-string v0, "movefrom STARTED: "
invoke-static {v0, v7, v12}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_2c
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->performStop()V
invoke-virtual {v6, v7, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentStopped(Landroidx/fragment/app/Fragment;Z)V
:cond_2d
const/4 v0, 0x2
if-ge v11, v0, :cond_34
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_2e
const-string v0, "movefrom ACTIVITY_CREATED: "
invoke-static {v0, v7, v12}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_2e
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v0, :cond_2f
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v0, v7}, Landroidx/fragment/app/FragmentHostCallback;->onShouldSaveFragmentState(Landroidx/fragment/app/Fragment;)Z
move-result v0
if-eqz v0, :cond_2f
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
if-nez v0, :cond_2f
invoke-virtual/range {p0 .. p1}, Landroidx/fragment/app/FragmentManagerImpl;->saveFragmentViewState(Landroidx/fragment/app/Fragment;)V
:cond_2f
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->performDestroyView()V
invoke-virtual {v6, v7, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentViewDestroyed(Landroidx/fragment/app/Fragment;Z)V
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v0, :cond_33
iget-object v1, v7, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
if-eqz v1, :cond_33
invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->endViewTransition(Landroid/view/View;)V
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object v0
if-eqz v0, :cond_30
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object v0
iget-boolean v0, v0, Landroidx/fragment/app/Fragment;->mRemoving:Z
if-nez v0, :cond_33
:cond_30
iget v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v1, 0x0
if-lez v0, :cond_31
iget-boolean v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mDestroyed:Z
if-nez v0, :cond_31
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
move-result v0
if-nez v0, :cond_31
iget v0, v7, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F
cmpl-float v0, v0, v1
if-ltz v0, :cond_31
move/from16 v0, p3
move/from16 v2, p4
invoke-virtual {v6, v7, v0, v13, v2}, Landroidx/fragment/app/FragmentManagerImpl;->loadAnimation(Landroidx/fragment/app/Fragment;IZI)Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;
move-result-object v0
goto :goto_f
:cond_31
move-object v0, v14
:goto_f
iput v1, v7, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F
if-eqz v0, :cond_32
invoke-direct {v6, v7, v0, v11}, Landroidx/fragment/app/FragmentManagerImpl;->animateRemoveFragment(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/FragmentManagerImpl$AnimationOrAnimator;I)V
:cond_32
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
iget-object v1, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
:cond_33
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup;
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mViewLifecycleOwner:Landroidx/fragment/app/FragmentViewLifecycleOwner;
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mViewLifecycleOwnerLiveData:Landroidx/lifecycle/MutableLiveData;
invoke-virtual {v0, v14}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mInnerView:Landroid/view/View;
iput-boolean v13, v7, Landroidx/fragment/app/Fragment;->mInLayout:Z
:cond_34
if-ge v11, v8, :cond_43
iget-boolean v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mDestroyed:Z
if-eqz v0, :cond_36
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getAnimatingAway()Landroid/view/View;
move-result-object v0
if-eqz v0, :cond_35
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getAnimatingAway()Landroid/view/View;
move-result-object v0
invoke-virtual {v7, v14}, Landroidx/fragment/app/Fragment;->setAnimatingAway(Landroid/view/View;)V
invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V
goto :goto_10
:cond_35
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getAnimator()Landroid/animation/Animator;
move-result-object v0
if-eqz v0, :cond_36
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getAnimator()Landroid/animation/Animator;
move-result-object v0
invoke-virtual {v7, v14}, Landroidx/fragment/app/Fragment;->setAnimator(Landroid/animation/Animator;)V
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
:cond_36
:goto_10
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getAnimatingAway()Landroid/view/View;
move-result-object v0
if-nez v0, :cond_42
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->getAnimator()Landroid/animation/Animator;
move-result-object v0
if-eqz v0, :cond_37
goto/16 :goto_16
:cond_37
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_38
const-string v0, "movefrom CREATED: "
invoke-static {v0, v7, v12}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_38
iget-boolean v0, v7, Landroidx/fragment/app/Fragment;->mRemoving:Z
if-eqz v0, :cond_39
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->isInBackStack()Z
move-result v0
if-nez v0, :cond_39
const/4 v0, 0x1
goto :goto_11
:cond_39
const/4 v0, 0x0
:goto_11
if-nez v0, :cond_3b
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v1, v7}, Landroidx/fragment/app/FragmentManagerViewModel;->shouldDestroy(Landroidx/fragment/app/Fragment;)Z
move-result v1
if-eqz v1, :cond_3a
goto :goto_12
:cond_3a
iput v13, v7, Landroidx/fragment/app/Fragment;->mState:I
goto :goto_14
:cond_3b
:goto_12
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
instance-of v2, v1, Landroidx/lifecycle/ViewModelStoreOwner;
if-eqz v2, :cond_3c
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v1}, Landroidx/fragment/app/FragmentManagerViewModel;->isCleared()Z
move-result v8
goto :goto_13
:cond_3c
invoke-virtual {v1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v1
instance-of v1, v1, Landroid/app/Activity;
if-eqz v1, :cond_3d
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v1
check-cast v1, Landroid/app/Activity;
invoke-virtual {v1}, Landroid/app/Activity;->isChangingConfigurations()Z
move-result v1
xor-int/2addr v8, v1
:cond_3d
:goto_13
if-nez v0, :cond_3e
if-eqz v8, :cond_3f
:cond_3e
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v1, v7}, Landroidx/fragment/app/FragmentManagerViewModel;->clearNonConfigState(Landroidx/fragment/app/Fragment;)V
:cond_3f
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->performDestroy()V
invoke-virtual {v6, v7, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentDestroyed(Landroidx/fragment/app/Fragment;Z)V
:goto_14
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/Fragment;->performDetach()V
invoke-virtual {v6, v7, v13}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentDetached(Landroidx/fragment/app/Fragment;Z)V
if-nez p5, :cond_43
if-nez v0, :cond_41
iget-object v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v0, v7}, Landroidx/fragment/app/FragmentManagerViewModel;->shouldDestroy(Landroidx/fragment/app/Fragment;)Z
move-result v0
if-eqz v0, :cond_40
goto :goto_15
:cond_40
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mHost:Landroidx/fragment/app/FragmentHostCallback;
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mParentFragment:Landroidx/fragment/app/Fragment;
iput-object v14, v7, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
iget-object v0, v7, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
if-eqz v0, :cond_43
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/Fragment;
if-eqz v0, :cond_43
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getRetainInstance()Z
move-result v1
if-eqz v1, :cond_43
iput-object v0, v7, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
goto :goto_17
:cond_41
:goto_15
invoke-virtual/range {p0 .. p1}, Landroidx/fragment/app/FragmentManagerImpl;->makeInactive(Landroidx/fragment/app/Fragment;)V
goto :goto_17
:cond_42
:goto_16
invoke-virtual {v7, v11}, Landroidx/fragment/app/Fragment;->setStateAfterAnimating(I)V
goto :goto_18
:cond_43
:goto_17
move v8, v11
:goto_18
iget v0, v7, Landroidx/fragment/app/Fragment;->mState:I
if-eq v0, v8, :cond_44
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "moveToState: Fragment state for "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " not updated inline; expected state "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, " found "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, v7, Landroidx/fragment/app/Fragment;->mState:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v12, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
iput v8, v7, Landroidx/fragment/app/Fragment;->mState:I
:cond_44
return-void
.end method
.method public noteStateNotSaved()V
.locals 3
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateSaved:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStopped:Z
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
:goto_0
if-ge v0, v1, :cond_1
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/fragment/app/Fragment;
if-eqz v2, :cond_0
invoke-virtual {v2}, Landroidx/fragment/app/Fragment;->noteStateNotSaved()V
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public onCreateView(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
.locals 12
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
move-object v6, p0
move-object/from16 v0, p4
const-string v1, "fragment"
move-object v2, p2
invoke-virtual {v1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_0
return-object v2
:cond_0
const-string v1, "class"
invoke-interface {v0, v2, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
sget-object v3, Landroidx/fragment/app/FragmentManagerImpl$FragmentTag;->Fragment:[I
move-object v4, p3
invoke-virtual {p3, v0, v3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object v3
const/4 v5, 0x0
if-nez v1, :cond_1
invoke-virtual {v3, v5}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v1
:cond_1
move-object v7, v1
const/4 v1, -0x1
const/4 v8, 0x1
invoke-virtual {v3, v8, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v9
const/4 v10, 0x2
invoke-virtual {v3, v10}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v10
invoke-virtual {v3}, Landroid/content/res/TypedArray;->recycle()V
if-eqz v7, :cond_11
invoke-virtual {p3}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v3
invoke-static {v3, v7}, Landroidx/fragment/app/FragmentFactory;->isFragmentClass(Ljava/lang/ClassLoader;Ljava/lang/String;)Z
move-result v3
if-nez v3, :cond_2
goto/16 :goto_4
:cond_2
if-eqz p1, :cond_3
invoke-virtual {p1}, Landroid/view/View;->getId()I
move-result v5
:cond_3
if-ne v5, v1, :cond_5
if-ne v9, v1, :cond_5
if-eqz v10, :cond_4
goto :goto_0
:cond_4
new-instance v1, Ljava/lang/IllegalArgumentException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
invoke-interface/range {p4 .. p4}, Landroid/util/AttributeSet;->getPositionDescription()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, ": Must specify unique android:id, android:tag, or have a parent with an id for "
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
:cond_5
:goto_0
if-eq v9, v1, :cond_6
invoke-virtual {p0, v9}, Landroidx/fragment/app/FragmentManagerImpl;->findFragmentById(I)Landroidx/fragment/app/Fragment;
move-result-object v2
:cond_6
if-nez v2, :cond_7
if-eqz v10, :cond_7
invoke-virtual {p0, v10}, Landroidx/fragment/app/FragmentManagerImpl;->findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object v2
:cond_7
if-nez v2, :cond_8
if-eq v5, v1, :cond_8
invoke-virtual {p0, v5}, Landroidx/fragment/app/FragmentManagerImpl;->findFragmentById(I)Landroidx/fragment/app/Fragment;
move-result-object v2
:cond_8
sget-boolean v1, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v1, :cond_9
const-string v1, "onCreateView: id=0x"
invoke-static {v1}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-static {v9}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, " fname="
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, " existing="
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const-string v3, "FragmentManager"
invoke-static {v3, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_9
if-nez v2, :cond_b
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->getFragmentFactory()Landroidx/fragment/app/FragmentFactory;
move-result-object v1
invoke-virtual {p3}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v2
invoke-virtual {v1, v2, v7}, Landroidx/fragment/app/FragmentFactory;->instantiate(Ljava/lang/ClassLoader;Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object v1
iput-boolean v8, v1, Landroidx/fragment/app/Fragment;->mFromLayout:Z
if-eqz v9, :cond_a
move v2, v9
goto :goto_1
:cond_a
move v2, v5
:goto_1
iput v2, v1, Landroidx/fragment/app/Fragment;->mFragmentId:I
iput v5, v1, Landroidx/fragment/app/Fragment;->mContainerId:I
iput-object v10, v1, Landroidx/fragment/app/Fragment;->mTag:Ljava/lang/String;
iput-boolean v8, v1, Landroidx/fragment/app/Fragment;->mInLayout:Z
iput-object v6, v1, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
iget-object v2, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
iput-object v2, v1, Landroidx/fragment/app/Fragment;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v2}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v2
iget-object v3, v1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v1, v2, v0, v3}, Landroidx/fragment/app/Fragment;->onInflate(Landroid/content/Context;Landroid/util/AttributeSet;Landroid/os/Bundle;)V
invoke-virtual {p0, v1, v8}, Landroidx/fragment/app/FragmentManagerImpl;->addFragment(Landroidx/fragment/app/Fragment;Z)V
move-object v11, v1
goto :goto_2
:cond_b
iget-boolean v1, v2, Landroidx/fragment/app/Fragment;->mInLayout:Z
if-nez v1, :cond_10
iput-boolean v8, v2, Landroidx/fragment/app/Fragment;->mInLayout:Z
iget-object v1, v6, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
iput-object v1, v2, Landroidx/fragment/app/Fragment;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v1
iget-object v3, v2, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v2, v1, v0, v3}, Landroidx/fragment/app/Fragment;->onInflate(Landroid/content/Context;Landroid/util/AttributeSet;Landroid/os/Bundle;)V
move-object v11, v2
:goto_2
iget v0, v6, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
if-ge v0, v8, :cond_c
iget-boolean v0, v11, Landroidx/fragment/app/Fragment;->mFromLayout:Z
if-eqz v0, :cond_c
const/4 v2, 0x1
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
move-object v0, p0
move-object v1, v11
invoke-virtual/range {v0 .. v5}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
goto :goto_3
:cond_c
invoke-virtual {p0, v11}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;)V
:goto_3
iget-object v0, v11, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v0, :cond_f
if-eqz v9, :cond_d
invoke-virtual {v0, v9}, Landroid/view/View;->setId(I)V
:cond_d
iget-object v0, v11, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getTag()Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_e
iget-object v0, v11, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
invoke-virtual {v0, v10}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
:cond_e
iget-object v0, v11, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
return-object v0
:cond_f
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Fragment "
const-string v2, " did not create a view."
invoke-static {v1, v7, v2}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_10
new-instance v1, Ljava/lang/IllegalArgumentException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
invoke-interface/range {p4 .. p4}, Landroid/util/AttributeSet;->getPositionDescription()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, ": Duplicate id 0x"
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v9}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, ", tag "
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, ", or parent id 0x"
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v5}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, " with another fragment for "
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
:cond_11
:goto_4
return-object v2
.end method
.method public onCreateView(Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
.locals 1
const/4 v0, 0x0
invoke-virtual {p0, v0, p1, p2, p3}, Landroidx/fragment/app/FragmentManagerImpl;->onCreateView(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
move-result-object p1
return-object p1
.end method
.method public performPendingDeferredStart(Landroidx/fragment/app/Fragment;)V
.locals 7
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mDeferStart:Z
if-eqz v0, :cond_1
iget-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecutingActions:Z
if-eqz v0, :cond_0
const/4 p1, 0x1
iput-boolean p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHavePendingDeferredStart:Z
return-void
:cond_0
const/4 v0, 0x0
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mDeferStart:Z
iget v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
move-object v1, p0
move-object v2, p1
invoke-virtual/range {v1 .. v6}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
:cond_1
return-void
.end method
.method public popBackStack()V
.locals 4
new-instance v0, Landroidx/fragment/app/FragmentManagerImpl$PopBackStackState;
const/4 v1, 0x0
const/4 v2, 0x0
const/4 v3, -0x1
invoke-direct {v0, p0, v2, v3, v1}, Landroidx/fragment/app/FragmentManagerImpl$PopBackStackState;-><init>(Landroidx/fragment/app/FragmentManagerImpl;Ljava/lang/String;II)V
invoke-virtual {p0, v0, v1}, Landroidx/fragment/app/FragmentManagerImpl;->enqueueAction(Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;Z)V
return-void
.end method
.method public popBackStack(II)V
.locals 2
if-ltz p1, :cond_0
new-instance v0, Landroidx/fragment/app/FragmentManagerImpl$PopBackStackState;
const/4 v1, 0x0
invoke-direct {v0, p0, v1, p1, p2}, Landroidx/fragment/app/FragmentManagerImpl$PopBackStackState;-><init>(Landroidx/fragment/app/FragmentManagerImpl;Ljava/lang/String;II)V
const/4 p1, 0x0
invoke-virtual {p0, v0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->enqueueAction(Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;Z)V
return-void
:cond_0
new-instance p2, Ljava/lang/IllegalArgumentException;
const-string v0, "Bad id: "
invoke-static {v0, p1}, Le/e/b/a/a;->a(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public popBackStack(Ljava/lang/String;I)V
.locals 2
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
new-instance v0, Landroidx/fragment/app/FragmentManagerImpl$PopBackStackState;
const/4 v1, -0x1
invoke-direct {v0, p0, p1, v1, p2}, Landroidx/fragment/app/FragmentManagerImpl$PopBackStackState;-><init>(Landroidx/fragment/app/FragmentManagerImpl;Ljava/lang/String;II)V
const/4 p1, 0x0
invoke-virtual {p0, v0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->enqueueAction(Landroidx/fragment/app/FragmentManagerImpl$OpGenerator;Z)V
return-void
.end method
.method public popBackStackImmediate()Z
.locals 3
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->checkStateLoss()V
const/4 v0, 0x0
const/4 v1, -0x1
const/4 v2, 0x0
invoke-direct {p0, v0, v1, v2}, Landroidx/fragment/app/FragmentManagerImpl;->popBackStackImmediate(Ljava/lang/String;II)Z
move-result v0
return v0
.end method
.method public popBackStackImmediate(II)Z
.locals 1
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->checkStateLoss()V
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->execPendingActions()Z
if-ltz p1, :cond_0
const/4 v0, 0x0
invoke-direct {p0, v0, p1, p2}, Landroidx/fragment/app/FragmentManagerImpl;->popBackStackImmediate(Ljava/lang/String;II)Z
move-result p1
return p1
:cond_0
new-instance p2, Ljava/lang/IllegalArgumentException;
const-string v0, "Bad id: "
invoke-static {v0, p1}, Le/e/b/a/a;->a(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public popBackStackImmediate(Ljava/lang/String;I)Z
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->checkStateLoss()V
const/4 v0, -0x1
invoke-direct {p0, p1, v0, p2}, Landroidx/fragment/app/FragmentManagerImpl;->popBackStackImmediate(Ljava/lang/String;II)Z
move-result p1
return p1
.end method
.method public popBackStackState(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;II)Z
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;",
"Ljava/util/ArrayList<",
"Ljava/lang/Boolean;",
">;",
"Ljava/lang/String;",
"II)Z"
}
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
:cond_0
const/4 v2, 0x1
if-nez p3, :cond_2
if-gez p4, :cond_2
and-int/lit8 v3, p5, 0x1
if-nez v3, :cond_2
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result p3
sub-int/2addr p3, v2
if-gez p3, :cond_1
return v1
:cond_1
iget-object p4, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {p4, p3}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
move-result-object p3
invoke-virtual {p1, p3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p1
invoke-virtual {p2, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto/16 :goto_6
:cond_2
if-nez p3, :cond_4
if-ltz p4, :cond_3
goto :goto_0
:cond_3
const/4 p3, -0x1
const/4 v0, -0x1
goto :goto_4
:cond_4
:goto_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
sub-int/2addr v0, v2
:goto_1
if-ltz v0, :cond_7
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/BackStackRecord;
if-eqz p3, :cond_5
invoke-virtual {v3}, Landroidx/fragment/app/BackStackRecord;->getName()Ljava/lang/String;
move-result-object v4
invoke-virtual {p3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_5
goto :goto_2
:cond_5
if-ltz p4, :cond_6
iget v3, v3, Landroidx/fragment/app/BackStackRecord;->mIndex:I
if-ne p4, v3, :cond_6
goto :goto_2
:cond_6
add-int/lit8 v0, v0, -0x1
goto :goto_1
:cond_7
:goto_2
if-gez v0, :cond_8
return v1
:cond_8
and-int/2addr p5, v2
if-eqz p5, :cond_b
:cond_9
:goto_3
add-int/lit8 v0, v0, -0x1
if-ltz v0, :cond_b
iget-object p5, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {p5, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p5
check-cast p5, Landroidx/fragment/app/BackStackRecord;
if-eqz p3, :cond_a
invoke-virtual {p5}, Landroidx/fragment/app/BackStackRecord;->getName()Ljava/lang/String;
move-result-object v3
invoke-virtual {p3, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_9
:cond_a
if-ltz p4, :cond_b
iget p5, p5, Landroidx/fragment/app/BackStackRecord;->mIndex:I
if-ne p4, p5, :cond_b
goto :goto_3
:cond_b
:goto_4
iget-object p3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {p3}, Ljava/util/ArrayList;->size()I
move-result p3
sub-int/2addr p3, v2
if-ne v0, p3, :cond_c
return v1
:cond_c
iget-object p3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {p3}, Ljava/util/ArrayList;->size()I
move-result p3
sub-int/2addr p3, v2
:goto_5
if-le p3, v0, :cond_d
iget-object p4, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {p4, p3}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
move-result-object p4
invoke-virtual {p1, p4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p4
invoke-virtual {p2, p4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
add-int/lit8 p3, p3, -0x1
goto :goto_5
:cond_d
:goto_6
return v2
.end method
.method public putFragment(Landroid/os/Bundle;Ljava/lang/String;Landroidx/fragment/app/Fragment;)V
.locals 3
iget-object v0, p3, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
if-eq v0, p0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Fragment "
const-string v2, " is not currently in the FragmentManager"
invoke-static {v1, p3, v2}, Le/e/b/a/a;->a(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_0
iget-object p3, p3, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {p1, p2, p3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public registerFragmentLifecycleCallbacks(Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;Z)V
.locals 2
.param p1 # Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
new-instance v1, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
invoke-direct {v1, p1, p2}, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;-><init>(Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;Z)V
invoke-virtual {v0, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public removeFragment(Landroidx/fragment/app/Fragment;)V
.locals 3
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "remove: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " nesting="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p1, Landroidx/fragment/app/Fragment;->mBackStackNesting:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)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;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->isInBackStack()Z
move-result v0
const/4 v1, 0x1
xor-int/2addr v0, v1
iget-boolean v2, p1, Landroidx/fragment/app/Fragment;->mDetached:Z
if-eqz v2, :cond_1
if-eqz v0, :cond_3
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
monitor-enter v0
:try_start_0
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v2, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->isMenuAvailable(Landroidx/fragment/app/Fragment;)Z
move-result v0
if-eqz v0, :cond_2
iput-boolean v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNeedMenuInvalidate:Z
:cond_2
const/4 v0, 0x0
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mAdded:Z
iput-boolean v1, p1, Landroidx/fragment/app/Fragment;->mRemoving:Z
:cond_3
return-void
:catchall_0
move-exception p1
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public removeOnBackStackChangedListener(Landroidx/fragment/app/FragmentManager$OnBackStackChangedListener;)V
.locals 1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackChangeListeners:Ljava/util/ArrayList;
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
:cond_0
return-void
.end method
.method public removeRetainedFragment(Landroidx/fragment/app/Fragment;)V
.locals 2
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->isStateSaved()Z
move-result v0
const-string v1, "FragmentManager"
if-eqz v0, :cond_1
sget-boolean p1, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz p1, :cond_0
const-string p1, "Ignoring removeRetainedFragment as the state is already saved"
invoke-static {v1, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
return-void
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v0, p1}, Landroidx/fragment/app/FragmentManagerViewModel;->removeRetainedFragment(Landroidx/fragment/app/Fragment;)Z
move-result v0
if-eqz v0, :cond_2
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_2
const-string v0, "Updating retained Fragments: Removed "
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_2
return-void
.end method
.method public reportBackStackChanged()V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackChangeListeners:Ljava/util/ArrayList;
if-eqz v0, :cond_0
const/4 v0, 0x0
:goto_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackChangeListeners:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-ge v0, v1, :cond_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackChangeListeners:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManager$OnBackStackChangedListener;
invoke-interface {v1}, Landroidx/fragment/app/FragmentManager$OnBackStackChangedListener;->onBackStackChanged()V
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public restoreAllState(Landroid/os/Parcelable;Landroidx/fragment/app/FragmentManagerNonConfig;)V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
instance-of v0, v0, Landroidx/lifecycle/ViewModelStoreOwner;
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "You must use restoreSaveState when your FragmentHostCallback implements ViewModelStoreOwner"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v0, p2}, Landroidx/fragment/app/FragmentManagerViewModel;->restoreFromSnapshot(Landroidx/fragment/app/FragmentManagerNonConfig;)V
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->restoreSaveState(Landroid/os/Parcelable;)V
return-void
.end method
.method public restoreSaveState(Landroid/os/Parcelable;)V
.locals 12
if-nez p1, :cond_0
return-void
:cond_0
check-cast p1, Landroidx/fragment/app/FragmentManagerState;
iget-object v0, p1, Landroidx/fragment/app/FragmentManagerState;->mActive:Ljava/util/ArrayList;
if-nez v0, :cond_1
return-void
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManagerViewModel;->getRetainedFragments()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_2
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
const/4 v2, 0x1
const/4 v3, 0x0
const/4 v4, 0x0
if-eqz v1, :cond_9
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
sget-boolean v5, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v5, :cond_3
const-string v5, "restoreSaveState: re-attaching retained "
const-string v6, "FragmentManager"
invoke-static {v5, v1, v6}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_3
iget-object v5, p1, Landroidx/fragment/app/FragmentManagerState;->mActive:Ljava/util/ArrayList;
invoke-virtual {v5}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v5
:cond_4
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v6
if-eqz v6, :cond_5
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v6
check-cast v6, Landroidx/fragment/app/FragmentState;
iget-object v7, v6, Landroidx/fragment/app/FragmentState;->mWho:Ljava/lang/String;
iget-object v8, v1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v7
if-eqz v7, :cond_4
goto :goto_1
:cond_5
move-object v6, v4
:goto_1
if-nez v6, :cond_7
sget-boolean v3, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v3, :cond_6
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "Discarding retained Fragment "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v4, " that was not found in the set of active Fragments "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v4, p1, Landroidx/fragment/app/FragmentManagerState;->mActive:Ljava/util/ArrayList;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
const-string v4, "FragmentManager"
invoke-static {v4, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_6
const/4 v7, 0x1
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v11, 0x0
move-object v5, p0
move-object v6, v1
move v8, v3
move v9, v4
move v10, v11
invoke-virtual/range {v5 .. v10}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
iput-boolean v2, v1, Landroidx/fragment/app/Fragment;->mRemoving:Z
const/4 v7, 0x0
invoke-virtual/range {v5 .. v10}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V
goto :goto_0
:cond_7
iput-object v1, v6, Landroidx/fragment/app/FragmentState;->mInstance:Landroidx/fragment/app/Fragment;
iput-object v4, v1, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
iput v3, v1, Landroidx/fragment/app/Fragment;->mBackStackNesting:I
iput-boolean v3, v1, Landroidx/fragment/app/Fragment;->mInLayout:Z
iput-boolean v3, v1, Landroidx/fragment/app/Fragment;->mAdded:Z
iget-object v2, v1, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
if-eqz v2, :cond_8
iget-object v2, v2, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
goto :goto_2
:cond_8
move-object v2, v4
:goto_2
iput-object v2, v1, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
iput-object v4, v1, Landroidx/fragment/app/Fragment;->mTarget:Landroidx/fragment/app/Fragment;
iget-object v2, v6, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
if-eqz v2, :cond_2
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v3}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v3
invoke-virtual {v3}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v3
invoke-virtual {v2, v3}, Landroid/os/Bundle;->setClassLoader(Ljava/lang/ClassLoader;)V
iget-object v2, v6, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
const-string v3, "android:view_state"
invoke-virtual {v2, v3}, Landroid/os/Bundle;->getSparseParcelableArray(Ljava/lang/String;)Landroid/util/SparseArray;
move-result-object v2
iput-object v2, v1, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
iget-object v2, v6, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
iput-object v2, v1, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
goto/16 :goto_0
:cond_9
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->clear()V
iget-object v0, p1, Landroidx/fragment/app/FragmentManagerState;->mActive:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_a
:goto_3
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_c
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentState;
if-eqz v1, :cond_a
iget-object v5, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v5}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object v5
invoke-virtual {v5}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v5
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->getFragmentFactory()Landroidx/fragment/app/FragmentFactory;
move-result-object v6
invoke-virtual {v1, v5, v6}, Landroidx/fragment/app/FragmentState;->instantiate(Ljava/lang/ClassLoader;Landroidx/fragment/app/FragmentFactory;)Landroidx/fragment/app/Fragment;
move-result-object v5
iput-object p0, v5, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
sget-boolean v6, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v6, :cond_b
const-string v6, "restoreSaveState: active ("
invoke-static {v6}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v6
iget-object v7, v5, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v7, "): "
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
const-string v7, "FragmentManager"
invoke-static {v7, v6}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_b
iget-object v6, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v7, v5, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v6, v7, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iput-object v4, v1, Landroidx/fragment/app/FragmentState;->mInstance:Landroidx/fragment/app/Fragment;
goto :goto_3
:cond_c
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
iget-object v0, p1, Landroidx/fragment/app/FragmentManagerState;->mAdded:Ljava/util/ArrayList;
if-eqz v0, :cond_10
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_4
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_10
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
iget-object v5, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v5, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Landroidx/fragment/app/Fragment;
if-nez v5, :cond_d
new-instance v6, Ljava/lang/IllegalStateException;
const-string v7, "No instantiated fragment for ("
const-string v8, ")"
invoke-static {v7, v1, v8}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v7
invoke-direct {v6, v7}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v6}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_d
iput-boolean v2, v5, Landroidx/fragment/app/Fragment;->mAdded:Z
sget-boolean v6, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v6, :cond_e
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
const-string v7, "restoreSaveState: added ("
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "): "
invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const-string v6, "FragmentManager"
invoke-static {v6, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_e
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v1, v5}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_f
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
monitor-enter v1
:try_start_0
iget-object v6, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v6, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
monitor-exit v1
goto :goto_4
:catchall_0
move-exception p1
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
:cond_f
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Already added "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_10
iget-object v0, p1, Landroidx/fragment/app/FragmentManagerState;->mBackStack:[Landroidx/fragment/app/BackStackState;
if-eqz v0, :cond_13
new-instance v1, Ljava/util/ArrayList;
array-length v0, v0
invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(I)V
iput-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
const/4 v0, 0x0
:goto_5
iget-object v1, p1, Landroidx/fragment/app/FragmentManagerState;->mBackStack:[Landroidx/fragment/app/BackStackState;
array-length v2, v1
if-ge v0, v2, :cond_14
aget-object v1, v1, v0
invoke-virtual {v1, p0}, Landroidx/fragment/app/BackStackState;->instantiate(Landroidx/fragment/app/FragmentManagerImpl;)Landroidx/fragment/app/BackStackRecord;
move-result-object v1
sget-boolean v2, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v2, :cond_11
const-string v2, "restoreAllState: back stack #"
const-string v4, " (index "
invoke-static {v2, v0, v4}, Le/e/b/a/a;->b(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
iget v4, v1, Landroidx/fragment/app/BackStackRecord;->mIndex:I
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v4, "): "
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
const-string v4, "FragmentManager"
invoke-static {v4, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
new-instance v2, Landroidx/core/util/LogWriter;
const-string v4, "FragmentManager"
invoke-direct {v2, v4}, Landroidx/core/util/LogWriter;-><init>(Ljava/lang/String;)V
new-instance v4, Ljava/io/PrintWriter;
invoke-direct {v4, v2}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V
const-string v2, " "
invoke-virtual {v1, v2, v4, v3}, Landroidx/fragment/app/BackStackRecord;->dump(Ljava/lang/String;Ljava/io/PrintWriter;Z)V
invoke-virtual {v4}, Ljava/io/PrintWriter;->close()V
:cond_11
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget v2, v1, Landroidx/fragment/app/BackStackRecord;->mIndex:I
if-ltz v2, :cond_12
invoke-virtual {p0, v2, v1}, Landroidx/fragment/app/FragmentManagerImpl;->setBackStackIndex(ILandroidx/fragment/app/BackStackRecord;)V
:cond_12
add-int/lit8 v0, v0, 0x1
goto :goto_5
:cond_13
iput-object v4, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
:cond_14
iget-object v0, p1, Landroidx/fragment/app/FragmentManagerState;->mPrimaryNavActiveWho:Ljava/lang/String;
if-eqz v0, :cond_15
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/Fragment;
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPrimaryNav:Landroidx/fragment/app/Fragment;
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPrimaryNav:Landroidx/fragment/app/Fragment;
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchParentPrimaryNavigationFragmentChanged(Landroidx/fragment/app/Fragment;)V
:cond_15
iget p1, p1, Landroidx/fragment/app/FragmentManagerState;->mNextFragmentIndex:I
iput p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNextFragmentIndex:I
return-void
.end method
.method public retainNonConfig()Landroidx/fragment/app/FragmentManagerNonConfig;
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
instance-of v0, v0, Landroidx/lifecycle/ViewModelStoreOwner;
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "You cannot use retainNonConfig when your FragmentHostCallback implements ViewModelStoreOwner."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNonConfig:Landroidx/fragment/app/FragmentManagerViewModel;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManagerViewModel;->getSnapshot()Landroidx/fragment/app/FragmentManagerNonConfig;
move-result-object v0
return-object v0
.end method
.method public saveAllState()Landroid/os/Parcelable;
.locals 12
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->forcePostponedTransactions()V
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->endAnimatingAwayFragments()V
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManagerImpl;->execPendingActions()Z
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateSaved:Z
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->isEmpty()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_0
return-object v1
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->size()I
move-result v0
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2, v0}, Ljava/util/ArrayList;-><init>(I)V
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
const/4 v3, 0x0
const/4 v4, 0x0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v5
const-string v6, ": "
const-string v7, " was removed from the FragmentManager"
const-string v8, "Failure saving state: active "
const-string v9, "FragmentManager"
if-eqz v5, :cond_8
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Landroidx/fragment/app/Fragment;
if-eqz v5, :cond_1
iget-object v4, v5, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
if-eq v4, p0, :cond_2
new-instance v4, Ljava/lang/IllegalStateException;
invoke-static {v8, v5, v7}, Le/e/b/a/a;->a(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)Ljava/lang/String;
move-result-object v7
invoke-direct {v4, v7}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v4}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_2
new-instance v4, Landroidx/fragment/app/FragmentState;
invoke-direct {v4, v5}, Landroidx/fragment/app/FragmentState;-><init>(Landroidx/fragment/app/Fragment;)V
invoke-virtual {v2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget v7, v5, Landroidx/fragment/app/Fragment;->mState:I
if-lez v7, :cond_5
iget-object v7, v4, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
if-nez v7, :cond_5
invoke-virtual {p0, v5}, Landroidx/fragment/app/FragmentManagerImpl;->saveFragmentBasicState(Landroidx/fragment/app/Fragment;)Landroid/os/Bundle;
move-result-object v7
iput-object v7, v4, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
iget-object v7, v5, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
if-eqz v7, :cond_6
iget-object v8, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v8, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Landroidx/fragment/app/Fragment;
if-nez v7, :cond_3
new-instance v8, Ljava/lang/IllegalStateException;
new-instance v10, Ljava/lang/StringBuilder;
invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V
const-string v11, "Failure saving state: "
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v11, " has target not in fragment manager: "
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v11, v5, Landroidx/fragment/app/Fragment;->mTargetWho:Ljava/lang/String;
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v10
invoke-direct {v8, v10}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v8}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_3
iget-object v8, v4, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
if-nez v8, :cond_4
new-instance v8, Landroid/os/Bundle;
invoke-direct {v8}, Landroid/os/Bundle;-><init>()V
iput-object v8, v4, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
:cond_4
iget-object v8, v4, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
const-string v10, "android:target_state"
invoke-virtual {p0, v8, v10, v7}, Landroidx/fragment/app/FragmentManagerImpl;->putFragment(Landroid/os/Bundle;Ljava/lang/String;Landroidx/fragment/app/Fragment;)V
iget v7, v5, Landroidx/fragment/app/Fragment;->mTargetRequestCode:I
if-eqz v7, :cond_6
iget-object v8, v4, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
const-string v10, "android:target_req_state"
invoke-virtual {v8, v10, v7}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
goto :goto_1
:cond_5
iget-object v7, v5, Landroidx/fragment/app/Fragment;->mSavedFragmentState:Landroid/os/Bundle;
iput-object v7, v4, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
:cond_6
:goto_1
sget-boolean v7, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v7, :cond_7
new-instance v7, Ljava/lang/StringBuilder;
invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V
const-string v8, "Saved state of "
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v4, v4, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-static {v9, v4}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_7
const/4 v4, 0x1
goto/16 :goto_0
:cond_8
if-nez v4, :cond_a
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_9
const-string v0, "saveAllState: no fragments!"
invoke-static {v9, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_9
return-object v1
:cond_a
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-lez v0, :cond_d
new-instance v4, Ljava/util/ArrayList;
invoke-direct {v4, v0}, Ljava/util/ArrayList;-><init>(I)V
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAdded:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_b
:goto_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_e
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Landroidx/fragment/app/Fragment;
iget-object v10, v5, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v4, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget-object v10, v5, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
if-eq v10, p0, :cond_c
new-instance v10, Ljava/lang/IllegalStateException;
invoke-static {v8, v5, v7}, Le/e/b/a/a;->a(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)Ljava/lang/String;
move-result-object v11
invoke-direct {v10, v11}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v10}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_c
sget-boolean v10, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v10, :cond_b
const-string v10, "saveAllState: adding fragment ("
invoke-static {v10}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v10
iget-object v11, v5, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v11, "): "
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-static {v9, v5}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_2
:cond_d
move-object v4, v1
:cond_e
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
if-eqz v0, :cond_10
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-lez v0, :cond_10
new-array v1, v0, [Landroidx/fragment/app/BackStackState;
:goto_3
if-ge v3, v0, :cond_10
new-instance v5, Landroidx/fragment/app/BackStackState;
iget-object v7, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v7
check-cast v7, Landroidx/fragment/app/BackStackRecord;
invoke-direct {v5, v7}, Landroidx/fragment/app/BackStackState;-><init>(Landroidx/fragment/app/BackStackRecord;)V
aput-object v5, v1, v3
sget-boolean v5, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v5, :cond_f
const-string v5, "saveAllState: adding back stack #"
invoke-static {v5, v3, v6}, Le/e/b/a/a;->b(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
iget-object v7, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStack:Ljava/util/ArrayList;
invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v7
invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-static {v9, v5}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_f
add-int/lit8 v3, v3, 0x1
goto :goto_3
:cond_10
new-instance v0, Landroidx/fragment/app/FragmentManagerState;
invoke-direct {v0}, Landroidx/fragment/app/FragmentManagerState;-><init>()V
iput-object v2, v0, Landroidx/fragment/app/FragmentManagerState;->mActive:Ljava/util/ArrayList;
iput-object v4, v0, Landroidx/fragment/app/FragmentManagerState;->mAdded:Ljava/util/ArrayList;
iput-object v1, v0, Landroidx/fragment/app/FragmentManagerState;->mBackStack:[Landroidx/fragment/app/BackStackState;
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPrimaryNav:Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_11
iget-object v1, v1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
iput-object v1, v0, Landroidx/fragment/app/FragmentManagerState;->mPrimaryNavActiveWho:Ljava/lang/String;
:cond_11
iget v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mNextFragmentIndex:I
iput v1, v0, Landroidx/fragment/app/FragmentManagerState;->mNextFragmentIndex:I
return-object v0
.end method
.method public saveFragmentBasicState(Landroidx/fragment/app/Fragment;)Landroid/os/Bundle;
.locals 3
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateBundle:Landroid/os/Bundle;
if-nez v0, :cond_0
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateBundle:Landroid/os/Bundle;
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateBundle:Landroid/os/Bundle;
invoke-virtual {p1, v0}, Landroidx/fragment/app/Fragment;->performSaveInstanceState(Landroid/os/Bundle;)V
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateBundle:Landroid/os/Bundle;
const/4 v1, 0x0
invoke-virtual {p0, p1, v0, v1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchOnFragmentSaveInstanceState(Landroidx/fragment/app/Fragment;Landroid/os/Bundle;Z)V
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateBundle:Landroid/os/Bundle;
invoke-virtual {v0}, Landroid/os/Bundle;->isEmpty()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateBundle:Landroid/os/Bundle;
iput-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateBundle:Landroid/os/Bundle;
goto :goto_0
:cond_1
move-object v0, v1
:goto_0
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
if-eqz v1, :cond_2
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->saveFragmentViewState(Landroidx/fragment/app/Fragment;)V
:cond_2
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
if-eqz v1, :cond_4
if-nez v0, :cond_3
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
:cond_3
iget-object v1, p1, 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_4
iget-boolean v1, p1, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
if-nez v1, :cond_6
if-nez v0, :cond_5
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
:cond_5
iget-boolean p1, p1, Landroidx/fragment/app/Fragment;->mUserVisibleHint:Z
const-string v1, "android:user_visible_hint"
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
:cond_6
return-object v0
.end method
.method public saveFragmentInstanceState(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/Fragment$SavedState;
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
if-eq v0, p0, :cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Fragment "
const-string v2, " is not currently in the FragmentManager"
invoke-static {v1, p1, v2}, Le/e/b/a/a;->a(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->throwException(Ljava/lang/RuntimeException;)V
:cond_0
iget v0, p1, Landroidx/fragment/app/Fragment;->mState:I
const/4 v1, 0x0
if-lez v0, :cond_1
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->saveFragmentBasicState(Landroidx/fragment/app/Fragment;)Landroid/os/Bundle;
move-result-object p1
if-eqz p1, :cond_1
new-instance v1, Landroidx/fragment/app/Fragment$SavedState;
invoke-direct {v1, p1}, Landroidx/fragment/app/Fragment$SavedState;-><init>(Landroid/os/Bundle;)V
:cond_1
return-object v1
.end method
.method public saveFragmentViewState(Landroidx/fragment/app/Fragment;)V
.locals 2
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mInnerView:Landroid/view/View;
if-nez v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateArray:Landroid/util/SparseArray;
if-nez v0, :cond_1
new-instance v0, Landroid/util/SparseArray;
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateArray:Landroid/util/SparseArray;
goto :goto_0
:cond_1
invoke-virtual {v0}, Landroid/util/SparseArray;->clear()V
:goto_0
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mInnerView:Landroid/view/View;
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateArray:Landroid/util/SparseArray;
invoke-virtual {v0, v1}, Landroid/view/View;->saveHierarchyState(Landroid/util/SparseArray;)V
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateArray:Landroid/util/SparseArray;
invoke-virtual {v0}, Landroid/util/SparseArray;->size()I
move-result v0
if-lez v0, :cond_2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateArray:Landroid/util/SparseArray;
iput-object v0, p1, Landroidx/fragment/app/Fragment;->mSavedViewState:Landroid/util/SparseArray;
const/4 p1, 0x0
iput-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mStateArray:Landroid/util/SparseArray;
:cond_2
return-void
.end method
.method public scheduleCommit()V
.locals 4
monitor-enter p0
:try_start_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
const/4 v1, 0x0
const/4 v2, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPostponedTransactions:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
if-eqz v3, :cond_1
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPendingActions:Ljava/util/ArrayList;
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
move-result v3
if-ne v3, v2, :cond_1
const/4 v1, 0x1
:cond_1
if-nez v0, :cond_2
if-eqz v1, :cond_3
:cond_2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentHostCallback;->getHandler()Landroid/os/Handler;
move-result-object v0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecCommit:Ljava/lang/Runnable;
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentHostCallback;->getHandler()Landroid/os/Handler;
move-result-object v0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mExecCommit:Ljava/lang/Runnable;
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
invoke-direct {p0}, Landroidx/fragment/app/FragmentManagerImpl;->updateOnBackPressedCallbackEnabled()V
:cond_3
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public setBackStackIndex(ILandroidx/fragment/app/BackStackRecord;)V
.locals 4
monitor-enter p0
:try_start_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
if-nez v0, :cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-ge p1, v0, :cond_2
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_1
const-string v0, "FragmentManager"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Setting back stack index "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v2, " to "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p2}, 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 {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {v0, p1, p2}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
goto :goto_1
:cond_2
:goto_0
if-ge v0, p1, :cond_5
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
if-nez v1, :cond_3
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
:cond_3
sget-boolean v1, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v1, :cond_4
const-string v1, "FragmentManager"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Adding available back stack index "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v1, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_4
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mAvailBackStackIndices:Ljava/util/ArrayList;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_5
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_6
const-string v0, "FragmentManager"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Adding back stack index "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, " with "
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p2}, 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-static {v0, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_6
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mBackStackIndices:Ljava/util/ArrayList;
invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:goto_1
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public setMaxLifecycle(Landroidx/fragment/app/Fragment;Landroidx/lifecycle/Lifecycle$State;)V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-ne v0, p1, :cond_1
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mHost:Landroidx/fragment/app/FragmentHostCallback;
if-eqz v0, :cond_0
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
if-ne v0, p0, :cond_1
:cond_0
iput-object p2, p1, Landroidx/fragment/app/Fragment;->mMaxState:Landroidx/lifecycle/Lifecycle$State;
return-void
:cond_1
new-instance p2, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Fragment "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p1, " is not an active fragment of FragmentManager "
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public setPrimaryNavigationFragment(Landroidx/fragment/app/Fragment;)V
.locals 3
if-eqz p1, :cond_1
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
iget-object v1, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-ne v0, p1, :cond_0
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mHost:Landroidx/fragment/app/FragmentHostCallback;
if-eqz v0, :cond_1
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
if-ne v0, p0, :cond_0
goto :goto_0
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Fragment "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p1, " is not an active fragment of FragmentManager "
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, 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_1
:goto_0
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPrimaryNav:Landroidx/fragment/app/Fragment;
iput-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPrimaryNav:Landroidx/fragment/app/Fragment;
invoke-direct {p0, v0}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchParentPrimaryNavigationFragmentChanged(Landroidx/fragment/app/Fragment;)V
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mPrimaryNav:Landroidx/fragment/app/Fragment;
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentManagerImpl;->dispatchParentPrimaryNavigationFragmentChanged(Landroidx/fragment/app/Fragment;)V
return-void
.end method
.method public showFragment(Landroidx/fragment/app/Fragment;)V
.locals 2
sget-boolean v0, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v0, :cond_0
const-string v0, "show: "
const-string v1, "FragmentManager"
invoke-static {v0, p1, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Landroidx/fragment/app/Fragment;Ljava/lang/String;)V
:cond_0
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
if-eqz v0, :cond_1
const/4 v0, 0x0
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z
xor-int/lit8 v0, v0, 0x1
iput-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z
:cond_1
return-void
.end method
.method public startPendingDeferredFragments()V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
invoke-virtual {p0, v1}, Landroidx/fragment/app/FragmentManagerImpl;->performPendingDeferredStart(Landroidx/fragment/app/Fragment;)V
goto :goto_0
:cond_1
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0x80
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v1, "FragmentManager{"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " in "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mParent:Landroidx/fragment/app/Fragment;
if-eqz v1, :cond_0
invoke-static {v1, v0}, Landroidx/core/util/DebugUtils;->buildShortClassTag(Ljava/lang/Object;Ljava/lang/StringBuilder;)V
goto :goto_0
:cond_0
iget-object v1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-static {v1, v0}, Landroidx/core/util/DebugUtils;->buildShortClassTag(Ljava/lang/Object;Ljava/lang/StringBuilder;)V
:goto_0
const-string v1, "}}"
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
return-object v0
.end method
.method public unregisterFragmentLifecycleCallbacks(Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;)V
.locals 4
.param p1 # Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
monitor-enter v0
const/4 v1, 0x0
:try_start_0
iget-object v2, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v2}, Ljava/util/concurrent/CopyOnWriteArrayList;->size()I
move-result v2
:goto_0
if-ge v1, v2, :cond_1
iget-object v3, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {v3, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;
iget-object v3, v3, Landroidx/fragment/app/FragmentManagerImpl$FragmentLifecycleCallbacksHolder;->mCallback:Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks;
if-ne v3, p1, :cond_0
iget-object p1, p0, Landroidx/fragment/app/FragmentManagerImpl;->mLifecycleCallbacks:Ljava/util/concurrent/CopyOnWriteArrayList;
invoke-virtual {p1, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->remove(I)Ljava/lang/Object;
goto :goto_1
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
:goto_1
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method