.class Landroidx/fragment/app/FragmentTransition; .super Ljava/lang/Object; .source "FragmentTransition.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition; } .end annotation # static fields .field private static final INVERSE_OPS:[I .field private static final PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; .field private static final SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; # direct methods .method static constructor ()V .locals 2 const/16 v0, 0xa new-array v0, v0, [I fill-array-data v0, :array_0 sput-object v0, Landroidx/fragment/app/FragmentTransition;->INVERSE_OPS:[I sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x15 if-lt v0, v1, :cond_0 new-instance v0, Landroidx/fragment/app/FragmentTransitionCompat21; invoke-direct {v0}, Landroidx/fragment/app/FragmentTransitionCompat21;->()V goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 sput-object v0, Landroidx/fragment/app/FragmentTransition;->PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; invoke-static {}, Landroidx/fragment/app/FragmentTransition;->resolveSupportImpl()Landroidx/fragment/app/FragmentTransitionImpl; move-result-object v0 sput-object v0, Landroidx/fragment/app/FragmentTransition;->SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; return-void nop :array_0 .array-data 4 0x0 0x3 0x0 0x1 0x5 0x4 0x7 0x6 0x9 0x8 .end array-data .end method .method private constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method private static addSharedElementsWithMatchingNames(Ljava/util/ArrayList;Landroidx/collection/ArrayMap;Ljava/util/Collection;)V .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Landroid/view/View;", ">;", "Ljava/util/Collection<", "Ljava/lang/String;", ">;)V" } .end annotation invoke-virtual {p1}, Landroidx/collection/ArrayMap;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 :goto_0 if-ltz v0, :cond_1 invoke-virtual {p1, v0}, Landroidx/collection/ArrayMap;->valueAt(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroid/view/View; invoke-static {v1}, Landroidx/core/view/ViewCompat;->getTransitionName(Landroid/view/View;)Ljava/lang/String; move-result-object v2 invoke-interface {p2, v2}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z move-result v2 if-eqz v2, :cond_0 invoke-virtual {p0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :cond_0 add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_1 return-void .end method .method private static addToFirstInLastOut(Landroidx/fragment/app/BackStackRecord;Landroidx/fragment/app/BackStackRecord$Op;Landroid/util/SparseArray;ZZ)V .locals 11 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/BackStackRecord;", "Landroidx/fragment/app/BackStackRecord$Op;", "Landroid/util/SparseArray<", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", ">;ZZ)V" } .end annotation iget-object v6, p1, Landroidx/fragment/app/BackStackRecord$Op;->fragment:Landroidx/fragment/app/Fragment; if-nez v6, :cond_0 return-void :cond_0 iget v7, v6, Landroidx/fragment/app/Fragment;->mContainerId:I if-nez v7, :cond_1 return-void :cond_1 if-eqz p3, :cond_2 sget-object v0, Landroidx/fragment/app/FragmentTransition;->INVERSE_OPS:[I iget p1, p1, Landroidx/fragment/app/BackStackRecord$Op;->cmd:I aget p1, v0, p1 goto :goto_0 :cond_2 iget p1, p1, Landroidx/fragment/app/BackStackRecord$Op;->cmd:I :goto_0 const/4 v0, 0x0 const/4 v1, 0x1 if-eq p1, v1, :cond_a const/4 v2, 0x3 if-eq p1, v2, :cond_7 const/4 v2, 0x4 if-eq p1, v2, :cond_5 const/4 v2, 0x5 if-eq p1, v2, :cond_3 const/4 v2, 0x6 if-eq p1, v2, :cond_7 const/4 v2, 0x7 if-eq p1, v2, :cond_a const/4 p1, 0x0 const/4 v1, 0x0 :goto_1 const/4 v8, 0x0 goto/16 :goto_7 :cond_3 if-eqz p4, :cond_4 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z if-eqz p1, :cond_c iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mHidden:Z if-nez p1, :cond_c iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mAdded:Z if-eqz p1, :cond_c goto :goto_5 :cond_4 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mHidden:Z goto :goto_6 :cond_5 if-eqz p4, :cond_6 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z if-eqz p1, :cond_8 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mAdded:Z if-eqz p1, :cond_8 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mHidden:Z if-eqz p1, :cond_8 :goto_2 goto :goto_3 :cond_6 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mAdded:Z if-eqz p1, :cond_8 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mHidden:Z if-nez p1, :cond_8 goto :goto_2 :cond_7 if-eqz p4, :cond_9 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mAdded:Z if-nez p1, :cond_8 iget-object p1, v6, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View; if-eqz p1, :cond_8 iget-object p1, v6, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View; invoke-virtual {p1}, Landroid/view/View;->getVisibility()I move-result p1 if-nez p1, :cond_8 iget p1, v6, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F const/4 v2, 0x0 cmpl-float p1, p1, v2 if-ltz p1, :cond_8 :goto_3 const/4 p1, 0x1 goto :goto_4 :cond_8 const/4 p1, 0x0 goto :goto_4 :cond_9 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mAdded:Z if-eqz p1, :cond_8 iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mHidden:Z if-nez p1, :cond_8 goto :goto_3 :goto_4 move v8, p1 const/4 p1, 0x1 const/4 v1, 0x0 goto :goto_7 :cond_a if-eqz p4, :cond_b iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z goto :goto_6 :cond_b iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mAdded:Z if-nez p1, :cond_c iget-boolean p1, v6, Landroidx/fragment/app/Fragment;->mHidden:Z if-nez p1, :cond_c :goto_5 const/4 p1, 0x1 goto :goto_6 :cond_c const/4 p1, 0x0 :goto_6 move v0, p1 const/4 p1, 0x0 goto :goto_1 :goto_7 invoke-virtual {p2, v7}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition; if-eqz v0, :cond_d invoke-static {v2, p2, v7}, Landroidx/fragment/app/FragmentTransition;->ensureContainer(Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/util/SparseArray;I)Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition; move-result-object v2 iput-object v6, v2, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment; iput-boolean p3, v2, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z iput-object p0, v2, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInTransaction:Landroidx/fragment/app/BackStackRecord; :cond_d move-object v9, v2 const/4 v10, 0x0 if-nez p4, :cond_f if-eqz v1, :cond_f if-eqz v9, :cond_e iget-object v0, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment; if-ne v0, v6, :cond_e iput-object v10, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment; :cond_e iget-object v0, p0, Landroidx/fragment/app/BackStackRecord;->mManager:Landroidx/fragment/app/FragmentManagerImpl; iget v1, v6, Landroidx/fragment/app/Fragment;->mState:I if-gtz v1, :cond_f iget v1, v0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I if-lez v1, :cond_f iget-boolean v1, p0, Landroidx/fragment/app/BackStackRecord;->mReorderingAllowed:Z if-nez v1, :cond_f invoke-virtual {v0, v6}, Landroidx/fragment/app/FragmentManagerImpl;->makeActive(Landroidx/fragment/app/Fragment;)V const/4 v2, 0x1 const/4 v3, 0x0 const/4 v4, 0x0 const/4 v5, 0x0 move-object v1, v6 invoke-virtual/range {v0 .. v5}, Landroidx/fragment/app/FragmentManagerImpl;->moveToState(Landroidx/fragment/app/Fragment;IIIZ)V :cond_f if-eqz v8, :cond_11 if-eqz v9, :cond_10 iget-object v0, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment; if-nez v0, :cond_11 :cond_10 invoke-static {v9, p2, v7}, Landroidx/fragment/app/FragmentTransition;->ensureContainer(Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/util/SparseArray;I)Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition; move-result-object v9 iput-object v6, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment; iput-boolean p3, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutIsPop:Z iput-object p0, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutTransaction:Landroidx/fragment/app/BackStackRecord; :cond_11 if-nez p4, :cond_12 if-eqz p1, :cond_12 if-eqz v9, :cond_12 iget-object p0, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment; if-ne p0, v6, :cond_12 iput-object v10, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment; :cond_12 return-void .end method .method public static calculateFragments(Landroidx/fragment/app/BackStackRecord;Landroid/util/SparseArray;Z)V .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/BackStackRecord;", "Landroid/util/SparseArray<", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", ">;Z)V" } .end annotation iget-object v0, p0, Landroidx/fragment/app/BackStackRecord;->mOps:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 const/4 v1, 0x0 const/4 v2, 0x0 :goto_0 if-ge v2, v0, :cond_0 iget-object v3, p0, Landroidx/fragment/app/BackStackRecord;->mOps:Ljava/util/ArrayList; invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v3 check-cast v3, Landroidx/fragment/app/BackStackRecord$Op; invoke-static {p0, v3, p1, v1, p2}, Landroidx/fragment/app/FragmentTransition;->addToFirstInLastOut(Landroidx/fragment/app/BackStackRecord;Landroidx/fragment/app/BackStackRecord$Op;Landroid/util/SparseArray;ZZ)V add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_0 return-void .end method .method private static calculateNameOverrides(ILjava/util/ArrayList;Ljava/util/ArrayList;II)Landroidx/collection/ArrayMap; .locals 9 .annotation system Ldalvik/annotation/Signature; value = { "(I", "Ljava/util/ArrayList<", "Landroidx/fragment/app/BackStackRecord;", ">;", "Ljava/util/ArrayList<", "Ljava/lang/Boolean;", ">;II)", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;" } .end annotation new-instance v0, Landroidx/collection/ArrayMap; invoke-direct {v0}, Landroidx/collection/ArrayMap;->()V add-int/lit8 p4, p4, -0x1 :goto_0 if-lt p4, p3, :cond_3 invoke-virtual {p1, p4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroidx/fragment/app/BackStackRecord; invoke-virtual {v1, p0}, Landroidx/fragment/app/BackStackRecord;->interactsWith(I)Z move-result v2 if-eqz v2, :cond_2 invoke-virtual {p2, p4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Ljava/lang/Boolean; invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z move-result v2 iget-object v3, v1, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; if-eqz v3, :cond_2 iget-object v3, v1, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; invoke-virtual {v3}, Ljava/util/ArrayList;->size()I move-result v3 if-eqz v2, :cond_0 iget-object v2, v1, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; iget-object v1, v1, Landroidx/fragment/app/BackStackRecord;->mSharedElementTargetNames:Ljava/util/ArrayList; goto :goto_1 :cond_0 iget-object v2, v1, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; iget-object v1, v1, Landroidx/fragment/app/BackStackRecord;->mSharedElementTargetNames:Ljava/util/ArrayList; move-object v8, v2 move-object v2, v1 move-object v1, v8 :goto_1 const/4 v4, 0x0 :goto_2 if-ge v4, v3, :cond_2 invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v5 check-cast v5, Ljava/lang/String; invoke-virtual {v2, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v6 check-cast v6, Ljava/lang/String; invoke-virtual {v0, v6}, Landroidx/collection/ArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v7 check-cast v7, Ljava/lang/String; if-eqz v7, :cond_1 invoke-virtual {v0, v5, v7}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_3 :cond_1 invoke-virtual {v0, v5, v6}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :goto_3 add-int/lit8 v4, v4, 0x1 goto :goto_2 :cond_2 add-int/lit8 p4, p4, -0x1 goto :goto_0 :cond_3 return-object v0 .end method .method public static calculatePopFragments(Landroidx/fragment/app/BackStackRecord;Landroid/util/SparseArray;Z)V .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/BackStackRecord;", "Landroid/util/SparseArray<", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", ">;Z)V" } .end annotation iget-object v0, p0, Landroidx/fragment/app/BackStackRecord;->mManager:Landroidx/fragment/app/FragmentManagerImpl; iget-object v0, v0, Landroidx/fragment/app/FragmentManagerImpl;->mContainer:Landroidx/fragment/app/FragmentContainer; invoke-virtual {v0}, Landroidx/fragment/app/FragmentContainer;->onHasView()Z move-result v0 if-nez v0, :cond_0 return-void :cond_0 iget-object v0, p0, Landroidx/fragment/app/BackStackRecord;->mOps:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 const/4 v1, 0x1 sub-int/2addr v0, v1 :goto_0 if-ltz v0, :cond_1 iget-object v2, p0, Landroidx/fragment/app/BackStackRecord;->mOps: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/BackStackRecord$Op; invoke-static {p0, v2, p1, v1, p2}, Landroidx/fragment/app/FragmentTransition;->addToFirstInLastOut(Landroidx/fragment/app/BackStackRecord;Landroidx/fragment/app/BackStackRecord$Op;Landroid/util/SparseArray;ZZ)V add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_1 return-void .end method .method static callSharedElementStartEnd(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;ZLandroidx/collection/ArrayMap;Z)V .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/Fragment;", "Landroidx/fragment/app/Fragment;", "Z", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Landroid/view/View;", ">;Z)V" } .end annotation if-eqz p2, :cond_0 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getEnterTransitionCallback()Landroidx/core/app/SharedElementCallback; move-result-object p0 goto :goto_0 :cond_0 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getEnterTransitionCallback()Landroidx/core/app/SharedElementCallback; move-result-object p0 :goto_0 if-eqz p0, :cond_4 new-instance p1, Ljava/util/ArrayList; invoke-direct {p1}, Ljava/util/ArrayList;->()V new-instance p2, Ljava/util/ArrayList; invoke-direct {p2}, Ljava/util/ArrayList;->()V const/4 v0, 0x0 if-nez p3, :cond_1 const/4 v1, 0x0 goto :goto_1 :cond_1 invoke-virtual {p3}, Landroidx/collection/ArrayMap;->size()I move-result v1 :goto_1 if-ge v0, v1, :cond_2 invoke-virtual {p3, v0}, Landroidx/collection/ArrayMap;->keyAt(I)Ljava/lang/Object; move-result-object v2 invoke-virtual {p2, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z invoke-virtual {p3, v0}, Landroidx/collection/ArrayMap;->valueAt(I)Ljava/lang/Object; move-result-object v2 invoke-virtual {p1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z add-int/lit8 v0, v0, 0x1 goto :goto_1 :cond_2 const/4 p3, 0x0 if-eqz p4, :cond_3 invoke-virtual {p0, p2, p1, p3}, Landroidx/core/app/SharedElementCallback;->onSharedElementStart(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V return-void :cond_3 invoke-virtual {p0, p2, p1, p3}, Landroidx/core/app/SharedElementCallback;->onSharedElementEnd(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V :cond_4 return-void .end method .method private static canHandleAll(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/util/List;)Z .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransitionImpl;", "Ljava/util/List<", "Ljava/lang/Object;", ">;)Z" } .end annotation invoke-interface {p1}, Ljava/util/List;->size()I move-result v0 const/4 v1, 0x0 const/4 v2, 0x0 :goto_0 if-ge v2, v0, :cond_1 invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v3 invoke-virtual {p0, v3}, Landroidx/fragment/app/FragmentTransitionImpl;->canHandle(Ljava/lang/Object;)Z move-result v3 if-nez v3, :cond_0 return v1 :cond_0 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_1 const/4 p0, 0x1 return p0 .end method .method static captureInSharedElements(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/collection/ArrayMap;Ljava/lang/Object;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;)Landroidx/collection/ArrayMap; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransitionImpl;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;", "Ljava/lang/Object;", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", ")", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Landroid/view/View;", ">;" } .end annotation iget-object v0, p3, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment; invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View; move-result-object v1 invoke-virtual {p1}, Landroidx/collection/ArrayMap;->isEmpty()Z move-result v2 if-nez v2, :cond_7 if-eqz p2, :cond_7 if-nez v1, :cond_0 goto :goto_3 :cond_0 new-instance p2, Landroidx/collection/ArrayMap; invoke-direct {p2}, Landroidx/collection/ArrayMap;->()V invoke-virtual {p0, p2, v1}, Landroidx/fragment/app/FragmentTransitionImpl;->findNamedViews(Ljava/util/Map;Landroid/view/View;)V iget-object p0, p3, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInTransaction:Landroidx/fragment/app/BackStackRecord; iget-boolean p3, p3, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z if-eqz p3, :cond_1 invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getExitTransitionCallback()Landroidx/core/app/SharedElementCallback; move-result-object p3 iget-object p0, p0, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; goto :goto_0 :cond_1 invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getEnterTransitionCallback()Landroidx/core/app/SharedElementCallback; move-result-object p3 iget-object p0, p0, Landroidx/fragment/app/BackStackRecord;->mSharedElementTargetNames:Ljava/util/ArrayList; :goto_0 if-eqz p0, :cond_2 invoke-virtual {p2, p0}, Landroidx/collection/ArrayMap;->retainAll(Ljava/util/Collection;)Z invoke-virtual {p1}, Landroidx/collection/ArrayMap;->values()Ljava/util/Collection; move-result-object v0 invoke-virtual {p2, v0}, Landroidx/collection/ArrayMap;->retainAll(Ljava/util/Collection;)Z :cond_2 if-eqz p3, :cond_5 invoke-virtual {p3, p0, p2}, Landroidx/core/app/SharedElementCallback;->onMapSharedElements(Ljava/util/List;Ljava/util/Map;)V invoke-virtual {p0}, Ljava/util/ArrayList;->size()I move-result p3 add-int/lit8 p3, p3, -0x1 :goto_1 if-ltz p3, :cond_6 invoke-virtual {p0, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/String; invoke-virtual {p2, v0}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroid/view/View; if-nez v1, :cond_3 invoke-static {p1, v0}, Landroidx/fragment/app/FragmentTransition;->findKeyForValue(Landroidx/collection/ArrayMap;Ljava/lang/String;)Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_4 invoke-virtual {p1, v0}, Landroidx/collection/ArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object; goto :goto_2 :cond_3 invoke-static {v1}, Landroidx/core/view/ViewCompat;->getTransitionName(Landroid/view/View;)Ljava/lang/String; move-result-object v2 invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v2 if-nez v2, :cond_4 invoke-static {p1, v0}, Landroidx/fragment/app/FragmentTransition;->findKeyForValue(Landroidx/collection/ArrayMap;Ljava/lang/String;)Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_4 invoke-static {v1}, Landroidx/core/view/ViewCompat;->getTransitionName(Landroid/view/View;)Ljava/lang/String; move-result-object v1 invoke-virtual {p1, v0, v1}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :cond_4 :goto_2 add-int/lit8 p3, p3, -0x1 goto :goto_1 :cond_5 invoke-static {p1, p2}, Landroidx/fragment/app/FragmentTransition;->retainValues(Landroidx/collection/ArrayMap;Landroidx/collection/ArrayMap;)V :cond_6 return-object p2 :cond_7 :goto_3 invoke-virtual {p1}, Landroidx/collection/ArrayMap;->clear()V const/4 p0, 0x0 return-object p0 .end method .method private static captureOutSharedElements(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/collection/ArrayMap;Ljava/lang/Object;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;)Landroidx/collection/ArrayMap; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransitionImpl;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;", "Ljava/lang/Object;", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", ")", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Landroid/view/View;", ">;" } .end annotation invoke-virtual {p1}, Landroidx/collection/ArrayMap;->isEmpty()Z move-result v0 if-nez v0, :cond_6 if-nez p2, :cond_0 goto :goto_3 :cond_0 iget-object p2, p3, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment; new-instance v0, Landroidx/collection/ArrayMap; invoke-direct {v0}, Landroidx/collection/ArrayMap;->()V invoke-virtual {p2}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View; move-result-object v1 invoke-virtual {p0, v0, v1}, Landroidx/fragment/app/FragmentTransitionImpl;->findNamedViews(Ljava/util/Map;Landroid/view/View;)V iget-object p0, p3, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutTransaction:Landroidx/fragment/app/BackStackRecord; iget-boolean p3, p3, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutIsPop:Z if-eqz p3, :cond_1 invoke-virtual {p2}, Landroidx/fragment/app/Fragment;->getEnterTransitionCallback()Landroidx/core/app/SharedElementCallback; move-result-object p2 iget-object p0, p0, Landroidx/fragment/app/BackStackRecord;->mSharedElementTargetNames:Ljava/util/ArrayList; goto :goto_0 :cond_1 invoke-virtual {p2}, Landroidx/fragment/app/Fragment;->getExitTransitionCallback()Landroidx/core/app/SharedElementCallback; move-result-object p2 iget-object p0, p0, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; :goto_0 invoke-virtual {v0, p0}, Landroidx/collection/ArrayMap;->retainAll(Ljava/util/Collection;)Z if-eqz p2, :cond_4 invoke-virtual {p2, p0, v0}, Landroidx/core/app/SharedElementCallback;->onMapSharedElements(Ljava/util/List;Ljava/util/Map;)V invoke-virtual {p0}, Ljava/util/ArrayList;->size()I move-result p2 add-int/lit8 p2, p2, -0x1 :goto_1 if-ltz p2, :cond_5 invoke-virtual {p0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object p3 check-cast p3, Ljava/lang/String; invoke-virtual {v0, p3}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroid/view/View; if-nez v1, :cond_2 invoke-virtual {p1, p3}, Landroidx/collection/ArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object; goto :goto_2 :cond_2 invoke-static {v1}, Landroidx/core/view/ViewCompat;->getTransitionName(Landroid/view/View;)Ljava/lang/String; move-result-object v2 invoke-virtual {p3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v2 if-nez v2, :cond_3 invoke-virtual {p1, p3}, Landroidx/collection/ArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p3 check-cast p3, Ljava/lang/String; invoke-static {v1}, Landroidx/core/view/ViewCompat;->getTransitionName(Landroid/view/View;)Ljava/lang/String; move-result-object v1 invoke-virtual {p1, v1, p3}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :cond_3 :goto_2 add-int/lit8 p2, p2, -0x1 goto :goto_1 :cond_4 invoke-virtual {v0}, Landroidx/collection/ArrayMap;->keySet()Ljava/util/Set; move-result-object p0 invoke-virtual {p1, p0}, Landroidx/collection/ArrayMap;->retainAll(Ljava/util/Collection;)Z :cond_5 return-object v0 :cond_6 :goto_3 invoke-virtual {p1}, Landroidx/collection/ArrayMap;->clear()V const/4 p0, 0x0 return-object p0 .end method .method private static chooseImpl(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransitionImpl; .locals 2 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V if-eqz p0, :cond_2 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getExitTransition()Ljava/lang/Object; move-result-object v1 if-eqz v1, :cond_0 invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :cond_0 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getReturnTransition()Ljava/lang/Object; move-result-object v1 if-eqz v1, :cond_1 invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :cond_1 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getSharedElementReturnTransition()Ljava/lang/Object; move-result-object p0 if-eqz p0, :cond_2 invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :cond_2 if-eqz p1, :cond_5 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getEnterTransition()Ljava/lang/Object; move-result-object p0 if-eqz p0, :cond_3 invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :cond_3 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getReenterTransition()Ljava/lang/Object; move-result-object p0 if-eqz p0, :cond_4 invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :cond_4 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getSharedElementEnterTransition()Ljava/lang/Object; move-result-object p0 if-eqz p0, :cond_5 invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :cond_5 invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z move-result p0 const/4 p1, 0x0 if-eqz p0, :cond_6 return-object p1 :cond_6 sget-object p0, Landroidx/fragment/app/FragmentTransition;->PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; if-eqz p0, :cond_7 invoke-static {p0, v0}, Landroidx/fragment/app/FragmentTransition;->canHandleAll(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/util/List;)Z move-result p0 if-eqz p0, :cond_7 sget-object p0, Landroidx/fragment/app/FragmentTransition;->PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; return-object p0 :cond_7 sget-object p0, Landroidx/fragment/app/FragmentTransition;->SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; if-eqz p0, :cond_8 invoke-static {p0, v0}, Landroidx/fragment/app/FragmentTransition;->canHandleAll(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/util/List;)Z move-result p0 if-eqz p0, :cond_8 sget-object p0, Landroidx/fragment/app/FragmentTransition;->SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; return-object p0 :cond_8 sget-object p0, Landroidx/fragment/app/FragmentTransition;->PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; if-nez p0, :cond_9 sget-object p0, Landroidx/fragment/app/FragmentTransition;->SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; if-nez p0, :cond_9 return-object p1 :cond_9 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Invalid Transition types" invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .end method .method static configureEnteringExitingViews(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Ljava/util/ArrayList;Landroid/view/View;)Ljava/util/ArrayList; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransitionImpl;", "Ljava/lang/Object;", "Landroidx/fragment/app/Fragment;", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;", "Landroid/view/View;", ")", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;" } .end annotation if-eqz p1, :cond_2 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V invoke-virtual {p2}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View; move-result-object p2 if-eqz p2, :cond_0 invoke-virtual {p0, v0, p2}, Landroidx/fragment/app/FragmentTransitionImpl;->captureTransitioningViews(Ljava/util/ArrayList;Landroid/view/View;)V :cond_0 if-eqz p3, :cond_1 invoke-virtual {v0, p3}, Ljava/util/ArrayList;->removeAll(Ljava/util/Collection;)Z :cond_1 invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z move-result p2 if-nez p2, :cond_3 invoke-virtual {v0, p4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z invoke-virtual {p0, p1, v0}, Landroidx/fragment/app/FragmentTransitionImpl;->addTargets(Ljava/lang/Object;Ljava/util/ArrayList;)V goto :goto_0 :cond_2 const/4 v0, 0x0 :cond_3 :goto_0 return-object v0 .end method .method private static configureSharedElementsOrdered(Landroidx/fragment/app/FragmentTransitionImpl;Landroid/view/ViewGroup;Landroid/view/View;Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .locals 17 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransitionImpl;", "Landroid/view/ViewGroup;", "Landroid/view/View;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;", "Ljava/lang/Object;", "Ljava/lang/Object;", ")", "Ljava/lang/Object;" } .end annotation move-object/from16 v6, p0 move-object/from16 v7, p4 move-object/from16 v10, p5 move-object/from16 v11, p7 iget-object v8, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment; iget-object v9, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment; const/4 v0, 0x0 if-eqz v8, :cond_6 if-nez v9, :cond_0 goto/16 :goto_3 :cond_0 iget-boolean v12, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z invoke-virtual/range {p3 .. p3}, Landroidx/collection/ArrayMap;->isEmpty()Z move-result v1 if-eqz v1, :cond_1 move-object/from16 v13, p3 move-object v1, v0 goto :goto_0 :cond_1 invoke-static {v6, v8, v9, v12}, Landroidx/fragment/app/FragmentTransition;->getSharedElementTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; move-result-object v1 move-object/from16 v13, p3 :goto_0 invoke-static {v6, v13, v1, v7}, Landroidx/fragment/app/FragmentTransition;->captureOutSharedElements(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/collection/ArrayMap;Ljava/lang/Object;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;)Landroidx/collection/ArrayMap; move-result-object v3 invoke-virtual/range {p3 .. p3}, Landroidx/collection/ArrayMap;->isEmpty()Z move-result v2 if-eqz v2, :cond_2 move-object v14, v0 goto :goto_1 :cond_2 invoke-virtual {v3}, Landroidx/collection/ArrayMap;->values()Ljava/util/Collection; move-result-object v2 invoke-virtual {v10, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z move-object v14, v1 :goto_1 if-nez v11, :cond_3 if-nez p8, :cond_3 if-nez v14, :cond_3 return-object v0 :cond_3 const/4 v1, 0x1 invoke-static {v8, v9, v12, v3, v1}, Landroidx/fragment/app/FragmentTransition;->callSharedElementStartEnd(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;ZLandroidx/collection/ArrayMap;Z)V if-eqz v14, :cond_4 new-instance v15, Landroid/graphics/Rect; invoke-direct {v15}, Landroid/graphics/Rect;->()V move-object/from16 v5, p2 invoke-virtual {v6, v14, v5, v10}, Landroidx/fragment/app/FragmentTransitionImpl;->setSharedElementTargets(Ljava/lang/Object;Landroid/view/View;Ljava/util/ArrayList;)V iget-boolean v4, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutIsPop:Z iget-object v2, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutTransaction:Landroidx/fragment/app/BackStackRecord; move-object/from16 v0, p0 move-object v1, v14 move-object/from16 v16, v2 move-object/from16 v2, p8 move-object/from16 v5, v16 invoke-static/range {v0 .. v5}, Landroidx/fragment/app/FragmentTransition;->setOutEpicenter(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Ljava/lang/Object;Landroidx/collection/ArrayMap;ZLandroidx/fragment/app/BackStackRecord;)V if-eqz v11, :cond_5 invoke-virtual {v6, v11, v15}, Landroidx/fragment/app/FragmentTransitionImpl;->setEpicenter(Ljava/lang/Object;Landroid/graphics/Rect;)V goto :goto_2 :cond_4 move-object v15, v0 :cond_5 :goto_2 new-instance v5, Landroidx/fragment/app/FragmentTransition$4; move-object v0, v5 move-object/from16 v1, p0 move-object/from16 v2, p3 move-object v3, v14 move-object/from16 v4, p4 move-object v13, v5 move-object/from16 v5, p6 move-object/from16 v6, p2 move-object v7, v8 move-object v8, v9 move v9, v12 move-object/from16 v10, p5 move-object/from16 v11, p7 move-object v12, v15 invoke-direct/range {v0 .. v12}, Landroidx/fragment/app/FragmentTransition$4;->(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/collection/ArrayMap;Ljava/lang/Object;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Ljava/util/ArrayList;Landroid/view/View;Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;ZLjava/util/ArrayList;Ljava/lang/Object;Landroid/graphics/Rect;)V move-object/from16 v0, p1 invoke-static {v0, v13}, Landroidx/fragment/app/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/fragment/app/OneShotPreDrawListener; return-object v14 :cond_6 :goto_3 return-object v0 .end method .method private static configureSharedElementsReordered(Landroidx/fragment/app/FragmentTransitionImpl;Landroid/view/ViewGroup;Landroid/view/View;Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .locals 15 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransitionImpl;", "Landroid/view/ViewGroup;", "Landroid/view/View;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;", "Ljava/lang/Object;", "Ljava/lang/Object;", ")", "Ljava/lang/Object;" } .end annotation move-object v6, p0 move-object/from16 v0, p2 move-object/from16 v1, p3 move-object/from16 v7, p4 move-object/from16 v2, p5 move-object/from16 v3, p6 move-object/from16 v8, p7 iget-object v9, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment; iget-object v10, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment; if-eqz v9, :cond_0 invoke-virtual {v9}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View; move-result-object v4 const/4 v5, 0x0 invoke-virtual {v4, v5}, Landroid/view/View;->setVisibility(I)V :cond_0 const/4 v4, 0x0 if-eqz v9, :cond_9 if-nez v10, :cond_1 goto/16 :goto_3 :cond_1 iget-boolean v11, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z invoke-virtual/range {p3 .. p3}, Landroidx/collection/ArrayMap;->isEmpty()Z move-result v5 if-eqz v5, :cond_2 move-object v5, v4 goto :goto_0 :cond_2 invoke-static {p0, v9, v10, v11}, Landroidx/fragment/app/FragmentTransition;->getSharedElementTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; move-result-object v5 :goto_0 invoke-static {p0, v1, v5, v7}, Landroidx/fragment/app/FragmentTransition;->captureOutSharedElements(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/collection/ArrayMap;Ljava/lang/Object;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;)Landroidx/collection/ArrayMap; move-result-object v12 invoke-static {p0, v1, v5, v7}, Landroidx/fragment/app/FragmentTransition;->captureInSharedElements(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/collection/ArrayMap;Ljava/lang/Object;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;)Landroidx/collection/ArrayMap; move-result-object v13 invoke-virtual/range {p3 .. p3}, Landroidx/collection/ArrayMap;->isEmpty()Z move-result v14 if-eqz v14, :cond_5 if-eqz v12, :cond_3 invoke-virtual {v12}, Landroidx/collection/ArrayMap;->clear()V :cond_3 if-eqz v13, :cond_4 invoke-virtual {v13}, Landroidx/collection/ArrayMap;->clear()V :cond_4 move-object v14, v4 goto :goto_1 :cond_5 invoke-virtual/range {p3 .. p3}, Landroidx/collection/ArrayMap;->keySet()Ljava/util/Set; move-result-object v14 invoke-static {v2, v12, v14}, Landroidx/fragment/app/FragmentTransition;->addSharedElementsWithMatchingNames(Ljava/util/ArrayList;Landroidx/collection/ArrayMap;Ljava/util/Collection;)V invoke-virtual/range {p3 .. p3}, Landroidx/collection/ArrayMap;->values()Ljava/util/Collection; move-result-object v1 invoke-static {v3, v13, v1}, Landroidx/fragment/app/FragmentTransition;->addSharedElementsWithMatchingNames(Ljava/util/ArrayList;Landroidx/collection/ArrayMap;Ljava/util/Collection;)V move-object v14, v5 :goto_1 if-nez v8, :cond_6 if-nez p8, :cond_6 if-nez v14, :cond_6 return-object v4 :cond_6 const/4 v1, 0x1 invoke-static {v9, v10, v11, v12, v1}, Landroidx/fragment/app/FragmentTransition;->callSharedElementStartEnd(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;ZLandroidx/collection/ArrayMap;Z)V if-eqz v14, :cond_8 invoke-virtual {v3, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z invoke-virtual {p0, v14, v0, v2}, Landroidx/fragment/app/FragmentTransitionImpl;->setSharedElementTargets(Ljava/lang/Object;Landroid/view/View;Ljava/util/ArrayList;)V iget-boolean v4, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutIsPop:Z iget-object v5, v7, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutTransaction:Landroidx/fragment/app/BackStackRecord; move-object v0, p0 move-object v1, v14 move-object/from16 v2, p8 move-object v3, v12 invoke-static/range {v0 .. v5}, Landroidx/fragment/app/FragmentTransition;->setOutEpicenter(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Ljava/lang/Object;Landroidx/collection/ArrayMap;ZLandroidx/fragment/app/BackStackRecord;)V new-instance v0, Landroid/graphics/Rect; invoke-direct {v0}, Landroid/graphics/Rect;->()V invoke-static {v13, v7, v8, v11}, Landroidx/fragment/app/FragmentTransition;->getInEpicenterView(Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Ljava/lang/Object;Z)Landroid/view/View; move-result-object v1 if-eqz v1, :cond_7 invoke-virtual {p0, v8, v0}, Landroidx/fragment/app/FragmentTransitionImpl;->setEpicenter(Ljava/lang/Object;Landroid/graphics/Rect;)V :cond_7 move-object v7, v0 move-object v5, v1 goto :goto_2 :cond_8 move-object v5, v4 move-object v7, v5 :goto_2 new-instance v8, Landroidx/fragment/app/FragmentTransition$3; move-object v0, v8 move-object v1, v9 move-object v2, v10 move v3, v11 move-object v4, v13 move-object v6, p0 invoke-direct/range {v0 .. v7}, Landroidx/fragment/app/FragmentTransition$3;->(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;ZLandroidx/collection/ArrayMap;Landroid/view/View;Landroidx/fragment/app/FragmentTransitionImpl;Landroid/graphics/Rect;)V move-object/from16 v0, p1 invoke-static {v0, v8}, Landroidx/fragment/app/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/fragment/app/OneShotPreDrawListener; return-object v14 :cond_9 :goto_3 return-object v4 .end method .method private static configureTransitionsOrdered(Landroidx/fragment/app/FragmentManagerImpl;ILandroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/view/View;Landroidx/collection/ArrayMap;)V .locals 19 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentManagerImpl;", "I", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", "Landroid/view/View;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;)V" } .end annotation move-object/from16 v0, p0 move-object/from16 v9, p2 move-object/from16 v10, p3 move-object/from16 v11, p4 iget-object v1, v0, Landroidx/fragment/app/FragmentManagerImpl;->mContainer:Landroidx/fragment/app/FragmentContainer; invoke-virtual {v1}, Landroidx/fragment/app/FragmentContainer;->onHasView()Z move-result v1 if-eqz v1, :cond_0 iget-object v0, v0, Landroidx/fragment/app/FragmentManagerImpl;->mContainer:Landroidx/fragment/app/FragmentContainer; move/from16 v1, p1 invoke-virtual {v0, v1}, Landroidx/fragment/app/FragmentContainer;->onFindViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/view/ViewGroup; move-object v13, v0 goto :goto_0 :cond_0 const/4 v13, 0x0 :goto_0 if-nez v13, :cond_1 return-void :cond_1 iget-object v14, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment; iget-object v15, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment; invoke-static {v15, v14}, Landroidx/fragment/app/FragmentTransition;->chooseImpl(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransitionImpl; move-result-object v8 if-nez v8, :cond_2 return-void :cond_2 iget-boolean v0, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z iget-boolean v1, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutIsPop:Z invoke-static {v8, v14, v0}, Landroidx/fragment/app/FragmentTransition;->getEnterTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; move-result-object v7 invoke-static {v8, v15, v1}, Landroidx/fragment/app/FragmentTransition;->getExitTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; move-result-object v6 new-instance v5, Ljava/util/ArrayList; invoke-direct {v5}, Ljava/util/ArrayList;->()V new-instance v4, Ljava/util/ArrayList; invoke-direct {v4}, Ljava/util/ArrayList;->()V move-object v0, v8 move-object v1, v13 move-object/from16 v2, p3 move-object/from16 v3, p4 move-object/from16 p0, v4 move-object/from16 v4, p2 move-object/from16 p1, v5 move-object/from16 v16, v6 move-object/from16 v6, p0 move-object/from16 v17, v7 move-object v12, v8 move-object/from16 v8, v16 invoke-static/range {v0 .. v8}, Landroidx/fragment/app/FragmentTransition;->configureSharedElementsOrdered(Landroidx/fragment/app/FragmentTransitionImpl;Landroid/view/ViewGroup;Landroid/view/View;Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object v6 move-object/from16 v8, v17 if-nez v8, :cond_3 if-nez v6, :cond_3 move-object/from16 v0, v16 if-nez v0, :cond_4 return-void :cond_3 move-object/from16 v0, v16 :cond_4 move-object/from16 v1, p1 invoke-static {v12, v0, v15, v1, v10}, Landroidx/fragment/app/FragmentTransition;->configureEnteringExitingViews(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Ljava/util/ArrayList;Landroid/view/View;)Ljava/util/ArrayList; move-result-object v15 if-eqz v15, :cond_6 invoke-virtual {v15}, Ljava/util/ArrayList;->isEmpty()Z move-result v1 if-eqz v1, :cond_5 goto :goto_1 :cond_5 move-object/from16 v18, v0 goto :goto_2 :cond_6 :goto_1 const/16 v18, 0x0 :goto_2 invoke-virtual {v12, v8, v10}, Landroidx/fragment/app/FragmentTransitionImpl;->addTarget(Ljava/lang/Object;Landroid/view/View;)V iget-boolean v5, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z move-object v0, v12 move-object v1, v8 move-object/from16 v2, v18 move-object v3, v6 move-object v4, v14 invoke-static/range {v0 .. v5}, Landroidx/fragment/app/FragmentTransition;->mergeTransitions(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; move-result-object v9 if-eqz v9, :cond_7 new-instance v16, Ljava/util/ArrayList; invoke-direct/range {v16 .. v16}, Ljava/util/ArrayList;->()V move-object v0, v12 move-object v1, v9 move-object v2, v8 move-object/from16 v3, v16 move-object/from16 v4, v18 move-object v5, v15 move-object/from16 v7, p0 invoke-virtual/range {v0 .. v7}, Landroidx/fragment/app/FragmentTransitionImpl;->scheduleRemoveTargets(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;)V move-object v1, v13 move-object v2, v14 move-object/from16 v3, p3 move-object/from16 v4, p0 move-object v5, v8 move-object/from16 v6, v16 move-object/from16 v7, v18 move-object v8, v15 invoke-static/range {v0 .. v8}, Landroidx/fragment/app/FragmentTransition;->scheduleTargetChange(Landroidx/fragment/app/FragmentTransitionImpl;Landroid/view/ViewGroup;Landroidx/fragment/app/Fragment;Landroid/view/View;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;)V move-object/from16 v0, p0 invoke-virtual {v12, v13, v0, v11}, Landroidx/fragment/app/FragmentTransitionImpl;->setNameOverridesOrdered(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/Map;)V invoke-virtual {v12, v13, v9}, Landroidx/fragment/app/FragmentTransitionImpl;->beginDelayedTransition(Landroid/view/ViewGroup;Ljava/lang/Object;)V invoke-virtual {v12, v13, v0, v11}, Landroidx/fragment/app/FragmentTransitionImpl;->scheduleNameReset(Landroid/view/ViewGroup;Ljava/util/ArrayList;Ljava/util/Map;)V :cond_7 return-void .end method .method private static configureTransitionsReordered(Landroidx/fragment/app/FragmentManagerImpl;ILandroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/view/View;Landroidx/collection/ArrayMap;)V .locals 17 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentManagerImpl;", "I", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", "Landroid/view/View;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;)V" } .end annotation move-object/from16 v0, p0 move-object/from16 v4, p2 move-object/from16 v9, p3 iget-object v1, v0, Landroidx/fragment/app/FragmentManagerImpl;->mContainer:Landroidx/fragment/app/FragmentContainer; invoke-virtual {v1}, Landroidx/fragment/app/FragmentContainer;->onHasView()Z move-result v1 if-eqz v1, :cond_0 iget-object v0, v0, Landroidx/fragment/app/FragmentManagerImpl;->mContainer:Landroidx/fragment/app/FragmentContainer; move/from16 v1, p1 invoke-virtual {v0, v1}, Landroidx/fragment/app/FragmentContainer;->onFindViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/view/ViewGroup; goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 move-object v10, v0 if-nez v10, :cond_1 return-void :cond_1 iget-object v11, v4, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment; iget-object v12, v4, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment; invoke-static {v12, v11}, Landroidx/fragment/app/FragmentTransition;->chooseImpl(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransitionImpl; move-result-object v13 if-nez v13, :cond_2 return-void :cond_2 iget-boolean v14, v4, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z iget-boolean v0, v4, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutIsPop:Z new-instance v15, Ljava/util/ArrayList; invoke-direct {v15}, Ljava/util/ArrayList;->()V new-instance v8, Ljava/util/ArrayList; invoke-direct {v8}, Ljava/util/ArrayList;->()V invoke-static {v13, v11, v14}, Landroidx/fragment/app/FragmentTransition;->getEnterTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; move-result-object v7 invoke-static {v13, v12, v0}, Landroidx/fragment/app/FragmentTransition;->getExitTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; move-result-object v6 move-object v0, v13 move-object v1, v10 move-object/from16 v2, p3 move-object/from16 v3, p4 move-object/from16 v4, p2 move-object v5, v8 move-object/from16 p0, v6 move-object v6, v15 move-object/from16 p1, v7 move-object/from16 v16, v10 move-object v10, v8 move-object/from16 v8, p0 invoke-static/range {v0 .. v8}, Landroidx/fragment/app/FragmentTransition;->configureSharedElementsReordered(Landroidx/fragment/app/FragmentTransitionImpl;Landroid/view/ViewGroup;Landroid/view/View;Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object v8 move-object/from16 v6, p1 if-nez v6, :cond_3 if-nez v8, :cond_3 move-object/from16 v7, p0 if-nez v7, :cond_4 return-void :cond_3 move-object/from16 v7, p0 :cond_4 invoke-static {v13, v7, v12, v10, v9}, Landroidx/fragment/app/FragmentTransition;->configureEnteringExitingViews(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Ljava/util/ArrayList;Landroid/view/View;)Ljava/util/ArrayList; move-result-object v5 invoke-static {v13, v6, v11, v15, v9}, Landroidx/fragment/app/FragmentTransition;->configureEnteringExitingViews(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Ljava/util/ArrayList;Landroid/view/View;)Ljava/util/ArrayList; move-result-object v9 const/4 v0, 0x4 invoke-static {v9, v0}, Landroidx/fragment/app/FragmentTransition;->setViewVisibility(Ljava/util/ArrayList;I)V move-object v0, v13 move-object v1, v6 move-object v2, v7 move-object v3, v8 move-object v4, v11 move-object v11, v5 move v5, v14 invoke-static/range {v0 .. v5}, Landroidx/fragment/app/FragmentTransition;->mergeTransitions(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; move-result-object v14 if-eqz v14, :cond_5 invoke-static {v13, v7, v12, v11}, Landroidx/fragment/app/FragmentTransition;->replaceHide(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Ljava/util/ArrayList;)V invoke-virtual {v13, v15}, Landroidx/fragment/app/FragmentTransitionImpl;->prepareSetNameOverridesReordered(Ljava/util/ArrayList;)Ljava/util/ArrayList; move-result-object v12 move-object v0, v13 move-object v1, v14 move-object v2, v6 move-object v3, v9 move-object v4, v7 move-object v5, v11 move-object v6, v8 move-object v7, v15 invoke-virtual/range {v0 .. v7}, Landroidx/fragment/app/FragmentTransitionImpl;->scheduleRemoveTargets(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;)V move-object/from16 v0, v16 invoke-virtual {v13, v0, v14}, Landroidx/fragment/app/FragmentTransitionImpl;->beginDelayedTransition(Landroid/view/ViewGroup;Ljava/lang/Object;)V move-object v1, v13 move-object v2, v0 move-object v3, v10 move-object v4, v15 move-object v5, v12 move-object/from16 v6, p4 invoke-virtual/range {v1 .. v6}, Landroidx/fragment/app/FragmentTransitionImpl;->setNameOverridesReordered(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/Map;)V const/4 v0, 0x0 invoke-static {v9, v0}, Landroidx/fragment/app/FragmentTransition;->setViewVisibility(Ljava/util/ArrayList;I)V invoke-virtual {v13, v8, v10, v15}, Landroidx/fragment/app/FragmentTransitionImpl;->swapSharedElementTargets(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/util/ArrayList;)V :cond_5 return-void .end method .method private static ensureContainer(Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/util/SparseArray;I)Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", "Landroid/util/SparseArray<", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", ">;I)", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;" } .end annotation if-nez p0, :cond_0 new-instance p0, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition; invoke-direct {p0}, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->()V invoke-virtual {p1, p2, p0}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V :cond_0 return-object p0 .end method .method private static findKeyForValue(Landroidx/collection/ArrayMap;Ljava/lang/String;)Ljava/lang/String; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;", "Ljava/lang/String;", ")", "Ljava/lang/String;" } .end annotation invoke-virtual {p0}, Landroidx/collection/ArrayMap;->size()I move-result v0 const/4 v1, 0x0 :goto_0 if-ge v1, v0, :cond_1 invoke-virtual {p0, v1}, Landroidx/collection/ArrayMap;->valueAt(I)Ljava/lang/Object; move-result-object v2 invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v2 if-eqz v2, :cond_0 invoke-virtual {p0, v1}, Landroidx/collection/ArrayMap;->keyAt(I)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/String; return-object p0 :cond_0 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_1 const/4 p0, 0x0 return-object p0 .end method .method private static getEnterTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; .locals 0 if-nez p1, :cond_0 const/4 p0, 0x0 return-object p0 :cond_0 if-eqz p2, :cond_1 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getReenterTransition()Ljava/lang/Object; move-result-object p1 goto :goto_0 :cond_1 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getEnterTransition()Ljava/lang/Object; move-result-object p1 :goto_0 invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentTransitionImpl;->cloneTransition(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 return-object p0 .end method .method private static getExitTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; .locals 0 if-nez p1, :cond_0 const/4 p0, 0x0 return-object p0 :cond_0 if-eqz p2, :cond_1 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getReturnTransition()Ljava/lang/Object; move-result-object p1 goto :goto_0 :cond_1 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getExitTransition()Ljava/lang/Object; move-result-object p1 :goto_0 invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentTransitionImpl;->cloneTransition(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 return-object p0 .end method .method static getInEpicenterView(Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Ljava/lang/Object;Z)Landroid/view/View; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Landroid/view/View;", ">;", "Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;", "Ljava/lang/Object;", "Z)", "Landroid/view/View;" } .end annotation iget-object p1, p1, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInTransaction:Landroidx/fragment/app/BackStackRecord; if-eqz p2, :cond_1 if-eqz p0, :cond_1 iget-object p2, p1, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; if-eqz p2, :cond_1 iget-object p2, p1, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; invoke-virtual {p2}, Ljava/util/ArrayList;->isEmpty()Z move-result p2 if-nez p2, :cond_1 const/4 p2, 0x0 if-eqz p3, :cond_0 iget-object p1, p1, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/String; goto :goto_0 :cond_0 iget-object p1, p1, Landroidx/fragment/app/BackStackRecord;->mSharedElementTargetNames:Ljava/util/ArrayList; invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/String; :goto_0 invoke-virtual {p0, p1}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Landroid/view/View; return-object p0 :cond_1 const/4 p0, 0x0 return-object p0 .end method .method private static getSharedElementTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; .locals 0 if-eqz p1, :cond_2 if-nez p2, :cond_0 goto :goto_1 :cond_0 if-eqz p3, :cond_1 invoke-virtual {p2}, Landroidx/fragment/app/Fragment;->getSharedElementReturnTransition()Ljava/lang/Object; move-result-object p1 goto :goto_0 :cond_1 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getSharedElementEnterTransition()Ljava/lang/Object; move-result-object p1 :goto_0 invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentTransitionImpl;->cloneTransition(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentTransitionImpl;->wrapTransitionInSet(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 return-object p0 :cond_2 :goto_1 const/4 p0, 0x0 return-object p0 .end method .method private static mergeTransitions(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object; .locals 0 if-eqz p1, :cond_1 if-eqz p2, :cond_1 if-eqz p4, :cond_1 if-eqz p5, :cond_0 invoke-virtual {p4}, Landroidx/fragment/app/Fragment;->getAllowReturnTransitionOverlap()Z move-result p4 goto :goto_0 :cond_0 invoke-virtual {p4}, Landroidx/fragment/app/Fragment;->getAllowEnterTransitionOverlap()Z move-result p4 goto :goto_0 :cond_1 const/4 p4, 0x1 :goto_0 if-eqz p4, :cond_2 invoke-virtual {p0, p2, p1, p3}, Landroidx/fragment/app/FragmentTransitionImpl;->mergeTransitionsTogether(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 goto :goto_1 :cond_2 invoke-virtual {p0, p2, p1, p3}, Landroidx/fragment/app/FragmentTransitionImpl;->mergeTransitionsInSequence(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 :goto_1 return-object p0 .end method .method private static replaceHide(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Ljava/util/ArrayList;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransitionImpl;", "Ljava/lang/Object;", "Landroidx/fragment/app/Fragment;", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;)V" } .end annotation if-eqz p2, :cond_0 if-eqz p1, :cond_0 iget-boolean v0, p2, Landroidx/fragment/app/Fragment;->mAdded:Z if-eqz v0, :cond_0 iget-boolean v0, p2, Landroidx/fragment/app/Fragment;->mHidden:Z if-eqz v0, :cond_0 iget-boolean v0, p2, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z if-eqz v0, :cond_0 const/4 v0, 0x1 invoke-virtual {p2, v0}, Landroidx/fragment/app/Fragment;->setHideReplaced(Z)V invoke-virtual {p2}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View; move-result-object v0 invoke-virtual {p0, p1, v0, p3}, Landroidx/fragment/app/FragmentTransitionImpl;->scheduleHideFragmentView(Ljava/lang/Object;Landroid/view/View;Ljava/util/ArrayList;)V iget-object p0, p2, Landroidx/fragment/app/Fragment;->mContainer:Landroid/view/ViewGroup; new-instance p1, Landroidx/fragment/app/FragmentTransition$1; invoke-direct {p1, p3}, Landroidx/fragment/app/FragmentTransition$1;->(Ljava/util/ArrayList;)V invoke-static {p0, p1}, Landroidx/fragment/app/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/fragment/app/OneShotPreDrawListener; :cond_0 return-void .end method .method private static resolveSupportImpl()Landroidx/fragment/app/FragmentTransitionImpl; .locals 3 :try_start_0 const-string v0, "androidx.transition.FragmentTransitionSupport" invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v0 const/4 v1, 0x0 new-array v2, v1, [Ljava/lang/Class; invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor; move-result-object v0 new-array v1, v1, [Ljava/lang/Object; invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroidx/fragment/app/FragmentTransitionImpl; :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 return-object v0 :catch_0 const/4 v0, 0x0 return-object v0 .end method .method private static retainValues(Landroidx/collection/ArrayMap;Landroidx/collection/ArrayMap;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Landroid/view/View;", ">;)V" } .end annotation invoke-virtual {p0}, Landroidx/collection/ArrayMap;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 :goto_0 if-ltz v0, :cond_1 invoke-virtual {p0, v0}, Landroidx/collection/ArrayMap;->valueAt(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/String; invoke-virtual {p1, v1}, Landroidx/collection/ArrayMap;->containsKey(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_0 invoke-virtual {p0, v0}, Landroidx/collection/ArrayMap;->removeAt(I)Ljava/lang/Object; :cond_0 add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_1 return-void .end method .method private static scheduleTargetChange(Landroidx/fragment/app/FragmentTransitionImpl;Landroid/view/ViewGroup;Landroidx/fragment/app/Fragment;Landroid/view/View;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;)V .locals 10 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransitionImpl;", "Landroid/view/ViewGroup;", "Landroidx/fragment/app/Fragment;", "Landroid/view/View;", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;", "Ljava/lang/Object;", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;", "Ljava/lang/Object;", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;)V" } .end annotation new-instance v9, Landroidx/fragment/app/FragmentTransition$2; move-object v0, v9 move-object v1, p5 move-object v2, p0 move-object v3, p3 move-object v4, p2 move-object v5, p4 move-object/from16 v6, p6 move-object/from16 v7, p8 move-object/from16 v8, p7 invoke-direct/range {v0 .. v8}, Landroidx/fragment/app/FragmentTransition$2;->(Ljava/lang/Object;Landroidx/fragment/app/FragmentTransitionImpl;Landroid/view/View;Landroidx/fragment/app/Fragment;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/Object;)V move-object v0, p1 invoke-static {p1, v9}, Landroidx/fragment/app/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/fragment/app/OneShotPreDrawListener; return-void .end method .method private static setOutEpicenter(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Ljava/lang/Object;Landroidx/collection/ArrayMap;ZLandroidx/fragment/app/BackStackRecord;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentTransitionImpl;", "Ljava/lang/Object;", "Ljava/lang/Object;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Landroid/view/View;", ">;Z", "Landroidx/fragment/app/BackStackRecord;", ")V" } .end annotation iget-object v0, p5, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; if-eqz v0, :cond_1 iget-object v0, p5, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z move-result v0 if-nez v0, :cond_1 const/4 v0, 0x0 if-eqz p4, :cond_0 iget-object p4, p5, Landroidx/fragment/app/BackStackRecord;->mSharedElementTargetNames:Ljava/util/ArrayList; invoke-virtual {p4, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object p4 check-cast p4, Ljava/lang/String; goto :goto_0 :cond_0 iget-object p4, p5, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList; invoke-virtual {p4, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object p4 check-cast p4, Ljava/lang/String; :goto_0 invoke-virtual {p3, p4}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p3 check-cast p3, Landroid/view/View; invoke-virtual {p0, p1, p3}, Landroidx/fragment/app/FragmentTransitionImpl;->setEpicenter(Ljava/lang/Object;Landroid/view/View;)V if-eqz p2, :cond_1 invoke-virtual {p0, p2, p3}, Landroidx/fragment/app/FragmentTransitionImpl;->setEpicenter(Ljava/lang/Object;Landroid/view/View;)V :cond_1 return-void .end method .method static setViewVisibility(Ljava/util/ArrayList;I)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;I)V" } .end annotation if-nez p0, :cond_0 return-void :cond_0 invoke-virtual {p0}, Ljava/util/ArrayList;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 :goto_0 if-ltz v0, :cond_1 invoke-virtual {p0, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroid/view/View; invoke-virtual {v1, p1}, Landroid/view/View;->setVisibility(I)V add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_1 return-void .end method .method static startTransitions(Landroidx/fragment/app/FragmentManagerImpl;Ljava/util/ArrayList;Ljava/util/ArrayList;IIZ)V .locals 7 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/FragmentManagerImpl;", "Ljava/util/ArrayList<", "Landroidx/fragment/app/BackStackRecord;", ">;", "Ljava/util/ArrayList<", "Ljava/lang/Boolean;", ">;IIZ)V" } .end annotation iget v0, p0, Landroidx/fragment/app/FragmentManagerImpl;->mCurState:I if-gtz v0, :cond_0 return-void :cond_0 new-instance v0, Landroid/util/SparseArray; invoke-direct {v0}, Landroid/util/SparseArray;->()V move v1, p3 :goto_0 if-ge v1, p4, :cond_2 invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Landroidx/fragment/app/BackStackRecord; 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_1 invoke-static {v2, v0, p5}, Landroidx/fragment/app/FragmentTransition;->calculatePopFragments(Landroidx/fragment/app/BackStackRecord;Landroid/util/SparseArray;Z)V goto :goto_1 :cond_1 invoke-static {v2, v0, p5}, Landroidx/fragment/app/FragmentTransition;->calculateFragments(Landroidx/fragment/app/BackStackRecord;Landroid/util/SparseArray;Z)V :goto_1 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_2 invoke-virtual {v0}, Landroid/util/SparseArray;->size()I move-result v1 if-eqz v1, :cond_4 new-instance v1, Landroid/view/View; 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-direct {v1, v2}, Landroid/view/View;->(Landroid/content/Context;)V invoke-virtual {v0}, Landroid/util/SparseArray;->size()I move-result v2 const/4 v3, 0x0 :goto_2 if-ge v3, v2, :cond_4 invoke-virtual {v0, v3}, Landroid/util/SparseArray;->keyAt(I)I move-result v4 invoke-static {v4, p1, p2, p3, p4}, Landroidx/fragment/app/FragmentTransition;->calculateNameOverrides(ILjava/util/ArrayList;Ljava/util/ArrayList;II)Landroidx/collection/ArrayMap; move-result-object v5 invoke-virtual {v0, v3}, Landroid/util/SparseArray;->valueAt(I)Ljava/lang/Object; move-result-object v6 check-cast v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition; if-eqz p5, :cond_3 invoke-static {p0, v4, v6, v1, v5}, Landroidx/fragment/app/FragmentTransition;->configureTransitionsReordered(Landroidx/fragment/app/FragmentManagerImpl;ILandroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/view/View;Landroidx/collection/ArrayMap;)V goto :goto_3 :cond_3 invoke-static {p0, v4, v6, v1, v5}, Landroidx/fragment/app/FragmentTransition;->configureTransitionsOrdered(Landroidx/fragment/app/FragmentManagerImpl;ILandroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/view/View;Landroidx/collection/ArrayMap;)V :goto_3 add-int/lit8 v3, v3, 0x1 goto :goto_2 :cond_4 return-void .end method .method static supportsTransition()Z .locals 1 sget-object v0, Landroidx/fragment/app/FragmentTransition;->PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; if-nez v0, :cond_1 sget-object v0, Landroidx/fragment/app/FragmentTransition;->SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; if-eqz v0, :cond_0 goto :goto_0 :cond_0 const/4 v0, 0x0 return v0 :cond_1 :goto_0 const/4 v0, 0x1 return v0 .end method