apkfuckery/com.discord/smali/androidx/fragment/app/FragmentTransition.smali

2974 lines
83 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public Landroidx/fragment/app/FragmentTransition;
.super Ljava/lang/Object;
.source "FragmentTransition.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-07-08 16:44:49 +00:00
Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;,
Landroidx/fragment/app/FragmentTransition$Callback;
2020-05-17 12:40:10 +00:00
}
.end annotation
# static fields
.field public static final INVERSE_OPS:[I
.field public static final PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl;
.field public static final SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl;
# direct methods
.method public static constructor <clinit>()V
.locals 1
const/16 v0, 0xb
new-array v0, v0, [I
fill-array-data v0, :array_0
sput-object v0, Landroidx/fragment/app/FragmentTransition;->INVERSE_OPS:[I
new-instance v0, Landroidx/fragment/app/FragmentTransitionCompat21;
invoke-direct {v0}, Landroidx/fragment/app/FragmentTransitionCompat21;-><init>()V
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
0xa
.end array-data
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public 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/SimpleArrayMap;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_1
invoke-virtual {p1, v0}, Landroidx/collection/SimpleArrayMap;->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 public static addToFirstInLastOut(Landroidx/fragment/app/BackStackRecord;Landroidx/fragment/app/FragmentTransaction$Op;Landroid/util/SparseArray;ZZ)V
2020-07-08 16:44:49 +00:00
.locals 8
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/fragment/app/BackStackRecord;",
"Landroidx/fragment/app/FragmentTransaction$Op;",
"Landroid/util/SparseArray<",
"Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;",
">;ZZ)V"
}
.end annotation
2020-07-08 16:44:49 +00:00
iget-object v0, p1, Landroidx/fragment/app/FragmentTransaction$Op;->mFragment:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v0, :cond_0
2020-05-17 12:40:10 +00:00
return-void
:cond_0
2020-07-08 16:44:49 +00:00
iget v1, v0, Landroidx/fragment/app/Fragment;->mContainerId:I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v1, :cond_1
2020-05-17 12:40:10 +00:00
return-void
:cond_1
2020-07-08 16:44:49 +00:00
if-eqz p3, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sget-object v2, Landroidx/fragment/app/FragmentTransition;->INVERSE_OPS:[I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget p1, p1, Landroidx/fragment/app/FragmentTransaction$Op;->mCmd:I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget p1, v2, p1
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_2
2020-07-08 16:44:49 +00:00
iget p1, p1, Landroidx/fragment/app/FragmentTransaction$Op;->mCmd:I
2020-05-17 12:40:10 +00:00
:goto_0
2020-07-08 16:44:49 +00:00
const/4 v2, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v3, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p1, v3, :cond_a
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v4, 0x3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p1, v4, :cond_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v4, 0x4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p1, v4, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v4, 0x5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p1, v4, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v4, 0x6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p1, v4, :cond_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v4, 0x7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p1, v4, :cond_a
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
:goto_1
2020-07-08 16:44:49 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v5, 0x0
2020-05-17 12:40:10 +00:00
goto/16 :goto_7
:cond_3
if-eqz p4, :cond_4
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_c
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mHidden:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_c
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mAdded:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_c
2020-05-17 12:40:10 +00:00
goto :goto_5
:cond_4
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mHidden:Z
2020-05-17 12:40:10 +00:00
goto :goto_6
:cond_5
if-eqz p4, :cond_6
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mHiddenChanged:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mAdded:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mHidden:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_8
2020-05-17 12:40:10 +00:00
:goto_2
goto :goto_3
:cond_6
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mAdded:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mHidden:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_8
2020-05-17 12:40:10 +00:00
goto :goto_2
:cond_7
if-eqz p4, :cond_9
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mAdded:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object p1, v0, Landroidx/fragment/app/Fragment;->mView:Landroid/view/View;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget p1, v0, Landroidx/fragment/app/Fragment;->mPostponedAlpha:F
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
cmpl-float p1, p1, v4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ltz p1, :cond_8
2020-05-17 12:40:10 +00:00
:goto_3
2020-07-08 16:44:49 +00:00
const/4 p1, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_4
:cond_8
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
goto :goto_4
:cond_9
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mAdded:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mHidden:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_8
2020-05-17 12:40:10 +00:00
goto :goto_3
:goto_4
2020-07-08 16:44:49 +00:00
move v5, p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v4, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_7
:cond_a
if-eqz p4, :cond_b
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mIsNewlyAdded:Z
2020-05-17 12:40:10 +00:00
goto :goto_6
:cond_b
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mAdded:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_c
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-boolean p1, v0, Landroidx/fragment/app/Fragment;->mHidden:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_c
2020-05-17 12:40:10 +00:00
:goto_5
2020-07-08 16:44:49 +00:00
const/4 p1, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_6
:cond_c
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
:goto_6
2020-07-08 16:44:49 +00:00
move v2, p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 p1, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_1
:goto_7
2020-07-08 16:44:49 +00:00
invoke-virtual {p2, v1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
move-result-object v6
check-cast v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;
2020-07-08 16:44:49 +00:00
if-eqz v2, :cond_d
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v6, p2, v1}, Landroidx/fragment/app/FragmentTransition;->ensureContainer(Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/util/SparseArray;I)Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;
2020-05-17 12:40:10 +00:00
move-result-object v6
2020-07-08 16:44:49 +00:00
iput-object v0, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-boolean p3, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p0, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInTransaction:Landroidx/fragment/app/BackStackRecord;
2020-05-17 12:40:10 +00:00
:cond_d
2020-07-08 16:44:49 +00:00
const/4 v2, 0x0
2020-05-17 12:40:10 +00:00
if-nez p4, :cond_f
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_f
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v6, :cond_e
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object p1, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne p1, v0, :cond_e
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object v2, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
:cond_e
2020-07-08 16:44:49 +00:00
iget-object p1, p0, Landroidx/fragment/app/BackStackRecord;->mManager:Landroidx/fragment/app/FragmentManager;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget v7, v0, Landroidx/fragment/app/Fragment;->mState:I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ge v7, v3, :cond_f
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget v7, p1, Landroidx/fragment/app/FragmentManager;->mCurState:I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-lt v7, v3, :cond_f
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-boolean v7, p0, Landroidx/fragment/app/FragmentTransaction;->mReorderingAllowed:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v7, :cond_f
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v0}, Landroidx/fragment/app/FragmentManager;->makeActive(Landroidx/fragment/app/Fragment;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v0, v3}, Landroidx/fragment/app/FragmentManager;->moveToState(Landroidx/fragment/app/Fragment;I)V
2020-05-17 12:40:10 +00:00
:cond_f
2020-07-08 16:44:49 +00:00
if-eqz v5, :cond_11
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v6, :cond_10
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object p1, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_11
2020-05-17 12:40:10 +00:00
:cond_10
2020-07-08 16:44:49 +00:00
invoke-static {v6, p2, v1}, Landroidx/fragment/app/FragmentTransition;->ensureContainer(Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/util/SparseArray;I)Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object v0, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-boolean p3, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutIsPop:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p0, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutTransaction:Landroidx/fragment/app/BackStackRecord;
2020-05-17 12:40:10 +00:00
:cond_11
if-nez p4, :cond_12
2020-07-08 16:44:49 +00:00
if-eqz v4, :cond_12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v6, :cond_12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object p0, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne p0, v0, :cond_12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object v2, v6, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
: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/FragmentTransaction;->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/FragmentTransaction;->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/FragmentTransaction$Op;
invoke-static {p0, v3, p1, v1, p2}, Landroidx/fragment/app/FragmentTransition;->addToFirstInLastOut(Landroidx/fragment/app/BackStackRecord;Landroidx/fragment/app/FragmentTransaction$Op;Landroid/util/SparseArray;ZZ)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public 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;-><init>()V
add-int/lit8 p4, p4, -0x1
:goto_0
if-lt p4, p3, :cond_4
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-nez v2, :cond_0
goto :goto_4
:cond_0
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/FragmentTransaction;->mSharedElementSourceNames:Ljava/util/ArrayList;
if-eqz v3, :cond_3
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
move-result v3
if-eqz v2, :cond_1
iget-object v2, v1, Landroidx/fragment/app/FragmentTransaction;->mSharedElementSourceNames:Ljava/util/ArrayList;
iget-object v1, v1, Landroidx/fragment/app/FragmentTransaction;->mSharedElementTargetNames:Ljava/util/ArrayList;
goto :goto_1
:cond_1
iget-object v2, v1, Landroidx/fragment/app/FragmentTransaction;->mSharedElementSourceNames:Ljava/util/ArrayList;
iget-object v1, v1, Landroidx/fragment/app/FragmentTransaction;->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_3
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/SimpleArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Ljava/lang/String;
if-eqz v7, :cond_2
invoke-virtual {v0, v5, v7}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_3
:cond_2
invoke-virtual {v0, v5, v6}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:goto_3
add-int/lit8 v4, v4, 0x1
goto :goto_2
:cond_3
:goto_4
add-int/lit8 p4, p4, -0x1
goto :goto_0
:cond_4
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
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Landroidx/fragment/app/BackStackRecord;->mManager:Landroidx/fragment/app/FragmentManager;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, v0, Landroidx/fragment/app/FragmentManager;->mContainer:Landroidx/fragment/app/FragmentContainer;
2020-05-17 12:40:10 +00:00
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/FragmentTransaction;->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/FragmentTransaction;->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/FragmentTransaction$Op;
invoke-static {p0, v2, p1, v1, p2}, Landroidx/fragment/app/FragmentTransition;->addToFirstInLastOut(Landroidx/fragment/app/BackStackRecord;Landroidx/fragment/app/FragmentTransaction$Op;Landroid/util/SparseArray;ZZ)V
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_1
return-void
.end method
.method public 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;-><init>()V
new-instance p2, Ljava/util/ArrayList;
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
const/4 v0, 0x0
if-nez p3, :cond_1
const/4 v1, 0x0
goto :goto_1
:cond_1
invoke-virtual {p3}, Landroidx/collection/SimpleArrayMap;->size()I
move-result v1
:goto_1
if-ge v0, v1, :cond_2
invoke-virtual {p3, v0}, Landroidx/collection/SimpleArrayMap;->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/SimpleArrayMap;->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
goto :goto_2
: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
:goto_2
return-void
.end method
.method public 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 public 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/SimpleArrayMap;->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;-><init>()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/FragmentTransaction;->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/FragmentTransaction;->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/SimpleArrayMap;->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/SimpleArrayMap;->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/SimpleArrayMap;->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/SimpleArrayMap;->clear()V
const/4 p0, 0x0
return-object p0
.end method
.method public 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/SimpleArrayMap;->isEmpty()Z
move-result v0
2020-07-08 16:44:49 +00:00
if-nez v0, :cond_7
2020-05-17 12:40:10 +00:00
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;-><init>()V
invoke-virtual {p2}, Landroidx/fragment/app/Fragment;->requireView()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/FragmentTransaction;->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/FragmentTransaction;->mSharedElementSourceNames:Ljava/util/ArrayList;
:goto_0
2020-07-08 16:44:49 +00:00
if-eqz p0, :cond_2
2020-05-17 12:40:10 +00:00
invoke-virtual {v0, p0}, Landroidx/collection/ArrayMap;->retainAll(Ljava/util/Collection;)Z
2020-07-08 16:44:49 +00:00
:cond_2
if-eqz p2, :cond_5
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
if-ltz p2, :cond_6
2020-05-17 12:40:10 +00:00
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/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/view/View;
2020-07-08 16:44:49 +00:00
if-nez v1, :cond_3
2020-05-17 12:40:10 +00:00
invoke-virtual {p1, p3}, Landroidx/collection/SimpleArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_2
2020-07-08 16:44:49 +00:00
:cond_3
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
if-nez v2, :cond_4
2020-05-17 12:40:10 +00:00
invoke-virtual {p1, p3}, Landroidx/collection/SimpleArrayMap;->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/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
:cond_4
2020-05-17 12:40:10 +00:00
:goto_2
add-int/lit8 p2, p2, -0x1
goto :goto_1
2020-07-08 16:44:49 +00:00
:cond_5
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
:cond_6
2020-05-17 12:40:10 +00:00
return-object v0
2020-07-08 16:44:49 +00:00
:cond_7
2020-05-17 12:40:10 +00:00
:goto_3
invoke-virtual {p1}, Landroidx/collection/SimpleArrayMap;->clear()V
const/4 p0, 0x0
return-object p0
.end method
.method public 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;-><init>()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;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public 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;-><init>()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 public 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/SimpleArrayMap;->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/SimpleArrayMap;->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;-><init>()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
2020-07-08 16:44:49 +00:00
new-instance v5, Landroidx/fragment/app/FragmentTransition$6;
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
invoke-direct/range {v0 .. v12}, Landroidx/fragment/app/FragmentTransition$6;-><init>(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
2020-05-17 12:40:10 +00:00
move-object/from16 v0, p1
invoke-static {v0, v13}, Landroidx/core/view/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/core/view/OneShotPreDrawListener;
return-object v14
:cond_6
:goto_3
return-object v0
.end method
.method public 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;->requireView()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/SimpleArrayMap;->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/SimpleArrayMap;->isEmpty()Z
move-result v14
if-eqz v14, :cond_5
if-eqz v12, :cond_3
invoke-virtual {v12}, Landroidx/collection/SimpleArrayMap;->clear()V
:cond_3
if-eqz v13, :cond_4
invoke-virtual {v13}, Landroidx/collection/SimpleArrayMap;->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;-><init>()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
2020-07-08 16:44:49 +00:00
new-instance v8, Landroidx/fragment/app/FragmentTransition$5;
2020-05-17 12:40:10 +00:00
move-object v0, v8
move-object v1, v9
move-object v2, v10
move v3, v11
move-object v4, v13
move-object v6, p0
2020-07-08 16:44:49 +00:00
invoke-direct/range {v0 .. v7}, Landroidx/fragment/app/FragmentTransition$5;-><init>(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;ZLandroidx/collection/ArrayMap;Landroid/view/View;Landroidx/fragment/app/FragmentTransitionImpl;Landroid/graphics/Rect;)V
2020-05-17 12:40:10 +00:00
move-object/from16 v0, p1
invoke-static {v0, v8}, Landroidx/core/view/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/core/view/OneShotPreDrawListener;
return-object v14
:cond_9
:goto_3
return-object v4
.end method
2020-07-08 16:44:49 +00:00
.method public static configureTransitionsOrdered(Landroidx/fragment/app/FragmentManager;ILandroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/view/View;Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$Callback;)V
2020-05-17 12:40:10 +00:00
.locals 19
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-07-08 16:44:49 +00:00
"Landroidx/fragment/app/FragmentManager;",
2020-05-17 12:40:10 +00:00
"I",
"Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;",
"Landroid/view/View;",
"Landroidx/collection/ArrayMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
2020-07-08 16:44:49 +00:00
">;",
"Landroidx/fragment/app/FragmentTransition$Callback;",
")V"
2020-05-17 12:40:10 +00:00
}
.end annotation
move-object/from16 v0, p0
move-object/from16 v9, p2
move-object/from16 v10, p3
move-object/from16 v11, p4
2020-07-08 16:44:49 +00:00
move-object/from16 v12, p5
iget-object v1, v0, Landroidx/fragment/app/FragmentManager;->mContainer:Landroidx/fragment/app/FragmentContainer;
2020-05-17 12:40:10 +00:00
invoke-virtual {v1}, Landroidx/fragment/app/FragmentContainer;->onHasView()Z
move-result v1
if-eqz v1, :cond_0
2020-07-08 16:44:49 +00:00
iget-object v0, v0, Landroidx/fragment/app/FragmentManager;->mContainer:Landroidx/fragment/app/FragmentContainer;
2020-05-17 12:40:10 +00:00
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;
2020-07-08 16:44:49 +00:00
move-object v14, v0
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-07-08 16:44:49 +00:00
const/4 v14, 0x0
2020-05-17 12:40:10 +00:00
:goto_0
2020-07-08 16:44:49 +00:00
if-nez v14, :cond_1
2020-05-17 12:40:10 +00:00
return-void
:cond_1
2020-07-08 16:44:49 +00:00
iget-object v15, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v8, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v8, v15}, Landroidx/fragment/app/FragmentTransition;->chooseImpl(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransitionImpl;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v7, :cond_2
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
invoke-static {v7, v15, v0}, Landroidx/fragment/app/FragmentTransition;->getEnterTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
move-result-object v6
2020-07-08 16:44:49 +00:00
invoke-static {v7, v8, v1}, Landroidx/fragment/app/FragmentTransition;->getExitTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v5
2020-05-17 12:40:10 +00:00
new-instance v4, Ljava/util/ArrayList;
invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V
2020-07-08 16:44:49 +00:00
new-instance v3, Ljava/util/ArrayList;
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
move-object v0, v7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v1, v14
2020-05-17 12:40:10 +00:00
move-object/from16 v2, p3
2020-07-08 16:44:49 +00:00
move-object/from16 p0, v3
2020-05-17 12:40:10 +00:00
move-object/from16 v3, p4
2020-07-08 16:44:49 +00:00
move-object/from16 p1, v4
2020-05-17 12:40:10 +00:00
move-object/from16 v4, p2
2020-07-08 16:44:49 +00:00
move-object/from16 v16, v5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object/from16 v5, p1
move-object/from16 v17, v6
2020-05-17 12:40:10 +00:00
move-object/from16 v6, p0
2020-07-08 16:44:49 +00:00
move-object v13, v7
move-object/from16 v7, v17
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v11, v8
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
move-object/from16 v7, p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v13, v0, v11, v7, 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;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v16
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v16, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {v16 .. v16}, Ljava/util/ArrayList;->isEmpty()Z
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
invoke-virtual {v13, v8, v10}, Landroidx/fragment/app/FragmentTransitionImpl;->addTarget(Ljava/lang/Object;Landroid/view/View;)V
2020-05-17 12:40:10 +00:00
iget-boolean v5, v9, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z
2020-07-08 16:44:49 +00:00
move-object v0, v13
2020-05-17 12:40:10 +00:00
move-object v1, v8
move-object/from16 v2, v18
move-object v3, v6
2020-07-08 16:44:49 +00:00
move-object v4, v15
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
if-eqz v11, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v16, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {v16 .. v16}, Ljava/util/ArrayList;->size()I
move-result v0
if-gtz v0, :cond_7
invoke-virtual {v7}, Ljava/util/ArrayList;->size()I
move-result v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-lez v0, :cond_8
:cond_7
new-instance v0, Landroidx/core/os/CancellationSignal;
invoke-direct {v0}, Landroidx/core/os/CancellationSignal;-><init>()V
invoke-interface {v12, v11, v0}, Landroidx/fragment/app/FragmentTransition$Callback;->onStart(Landroidx/fragment/app/Fragment;Landroidx/core/os/CancellationSignal;)V
new-instance v1, Landroidx/fragment/app/FragmentTransition$3;
invoke-direct {v1, v12, v11, v0}, Landroidx/fragment/app/FragmentTransition$3;-><init>(Landroidx/fragment/app/FragmentTransition$Callback;Landroidx/fragment/app/Fragment;Landroidx/core/os/CancellationSignal;)V
invoke-virtual {v13, v11, v9, v0, v1}, Landroidx/fragment/app/FragmentTransitionImpl;->setListenerForTransitionEnd(Landroidx/fragment/app/Fragment;Ljava/lang/Object;Landroidx/core/os/CancellationSignal;Ljava/lang/Runnable;)V
:cond_8
if-eqz v9, :cond_9
new-instance v11, Ljava/util/ArrayList;
invoke-direct {v11}, Ljava/util/ArrayList;-><init>()V
move-object v0, v13
2020-05-17 12:40:10 +00:00
move-object v1, v9
move-object v2, v8
2020-07-08 16:44:49 +00:00
move-object v3, v11
2020-05-17 12:40:10 +00:00
move-object/from16 v4, v18
2020-07-08 16:44:49 +00:00
move-object/from16 v5, v16
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
move-object v1, v14
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v2, v15
2020-05-17 12:40:10 +00:00
move-object/from16 v3, p3
move-object/from16 v4, p0
move-object v5, v8
2020-07-08 16:44:49 +00:00
move-object v6, v11
2020-05-17 12:40:10 +00:00
move-object/from16 v7, v18
2020-07-08 16:44:49 +00:00
move-object/from16 v8, v16
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object/from16 v0, p4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v13, v14, v1, v0}, Landroidx/fragment/app/FragmentTransitionImpl;->setNameOverridesOrdered(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/Map;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v13, v14, v9}, Landroidx/fragment/app/FragmentTransitionImpl;->beginDelayedTransition(Landroid/view/ViewGroup;Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v13, v14, v1, v0}, Landroidx/fragment/app/FragmentTransitionImpl;->scheduleNameReset(Landroid/view/ViewGroup;Ljava/util/ArrayList;Ljava/util/Map;)V
:cond_9
2020-05-17 12:40:10 +00:00
return-void
.end method
2020-07-08 16:44:49 +00:00
.method public static configureTransitionsReordered(Landroidx/fragment/app/FragmentManager;ILandroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/view/View;Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$Callback;)V
2020-05-17 12:40:10 +00:00
.locals 17
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-07-08 16:44:49 +00:00
"Landroidx/fragment/app/FragmentManager;",
2020-05-17 12:40:10 +00:00
"I",
"Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;",
"Landroid/view/View;",
"Landroidx/collection/ArrayMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
2020-07-08 16:44:49 +00:00
">;",
"Landroidx/fragment/app/FragmentTransition$Callback;",
")V"
2020-05-17 12:40:10 +00:00
}
.end annotation
move-object/from16 v0, p0
move-object/from16 v4, p2
move-object/from16 v9, p3
2020-07-08 16:44:49 +00:00
move-object/from16 v10, p5
iget-object v1, v0, Landroidx/fragment/app/FragmentManager;->mContainer:Landroidx/fragment/app/FragmentContainer;
2020-05-17 12:40:10 +00:00
invoke-virtual {v1}, Landroidx/fragment/app/FragmentContainer;->onHasView()Z
move-result v1
if-eqz v1, :cond_0
2020-07-08 16:44:49 +00:00
iget-object v0, v0, Landroidx/fragment/app/FragmentManager;->mContainer:Landroidx/fragment/app/FragmentContainer;
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
move-object v11, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v11, :cond_1
2020-05-17 12:40:10 +00:00
return-void
:cond_1
2020-07-08 16:44:49 +00:00
iget-object v12, v4, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastIn:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v13, v4, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOut:Landroidx/fragment/app/Fragment;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v13, v12}, Landroidx/fragment/app/FragmentTransition;->chooseImpl(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransitionImpl;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v14
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v14, :cond_2
2020-05-17 12:40:10 +00:00
return-void
:cond_2
2020-07-08 16:44:49 +00:00
iget-boolean v15, v4, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->lastInIsPop:Z
2020-05-17 12:40:10 +00:00
iget-boolean v0, v4, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;->firstOutIsPop:Z
new-instance v8, Ljava/util/ArrayList;
invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V
2020-07-08 16:44:49 +00:00
new-instance v7, Ljava/util/ArrayList;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v14, v12, v15}, Landroidx/fragment/app/FragmentTransition;->getEnterTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
move-result-object v6
2020-07-08 16:44:49 +00:00
invoke-static {v14, v13, v0}, Landroidx/fragment/app/FragmentTransition;->getExitTransition(Landroidx/fragment/app/FragmentTransitionImpl;Landroidx/fragment/app/Fragment;Z)Ljava/lang/Object;
move-result-object v5
move-object v0, v14
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v1, v11
2020-05-17 12:40:10 +00:00
move-object/from16 v2, p3
move-object/from16 v3, p4
move-object/from16 v4, p2
2020-07-08 16:44:49 +00:00
move-object/from16 p0, v5
move-object v5, v7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object/from16 p1, v6
move-object v6, v8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object/from16 v16, v11
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v11, v7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object/from16 v7, p1
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
invoke-static {v14, v7, v13, v11, 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;
2020-05-17 12:40:10 +00:00
move-result-object v5
2020-07-08 16:44:49 +00:00
invoke-static {v14, v6, 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;
2020-05-17 12:40:10 +00:00
move-result-object v9
const/4 v0, 0x4
invoke-static {v9, v0}, Landroidx/fragment/app/FragmentTransition;->setViewVisibility(Ljava/util/ArrayList;I)V
2020-07-08 16:44:49 +00:00
move-object v0, v14
2020-05-17 12:40:10 +00:00
move-object v1, v6
move-object v2, v7
move-object v3, v8
2020-07-08 16:44:49 +00:00
move-object v4, v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v12, v5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move v5, v15
2020-05-17 12:40:10 +00:00
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;
2020-07-08 16:44:49 +00:00
move-result-object v15
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v13, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v12, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v12}, Ljava/util/ArrayList;->size()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-gtz v0, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v11}, Ljava/util/ArrayList;->size()I
move-result v0
if-lez v0, :cond_6
:cond_5
new-instance v0, Landroidx/core/os/CancellationSignal;
invoke-direct {v0}, Landroidx/core/os/CancellationSignal;-><init>()V
move-object/from16 v1, p5
invoke-interface {v1, v13, v0}, Landroidx/fragment/app/FragmentTransition$Callback;->onStart(Landroidx/fragment/app/Fragment;Landroidx/core/os/CancellationSignal;)V
new-instance v2, Landroidx/fragment/app/FragmentTransition$1;
invoke-direct {v2, v1, v13, v0}, Landroidx/fragment/app/FragmentTransition$1;-><init>(Landroidx/fragment/app/FragmentTransition$Callback;Landroidx/fragment/app/Fragment;Landroidx/core/os/CancellationSignal;)V
invoke-virtual {v14, v13, v15, v0, v2}, Landroidx/fragment/app/FragmentTransitionImpl;->setListenerForTransitionEnd(Landroidx/fragment/app/Fragment;Ljava/lang/Object;Landroidx/core/os/CancellationSignal;Ljava/lang/Runnable;)V
:cond_6
if-eqz v15, :cond_7
invoke-static {v14, v7, v13, v12}, Landroidx/fragment/app/FragmentTransition;->replaceHide(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/lang/Object;Landroidx/fragment/app/Fragment;Ljava/util/ArrayList;)V
invoke-virtual {v14, v10}, Landroidx/fragment/app/FragmentTransitionImpl;->prepareSetNameOverridesReordered(Ljava/util/ArrayList;)Ljava/util/ArrayList;
move-result-object v13
move-object v0, v14
move-object v1, v15
2020-05-17 12:40:10 +00:00
move-object v2, v6
move-object v3, v9
move-object v4, v7
2020-07-08 16:44:49 +00:00
move-object v5, v12
2020-05-17 12:40:10 +00:00
move-object v6, v8
2020-07-08 16:44:49 +00:00
move-object v7, v10
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
invoke-virtual {v14, v0, v15}, Landroidx/fragment/app/FragmentTransitionImpl;->beginDelayedTransition(Landroid/view/ViewGroup;Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v1, v14
2020-05-17 12:40:10 +00:00
move-object v2, v0
2020-07-08 16:44:49 +00:00
move-object v3, v11
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v4, v10
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v5, v13
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
invoke-virtual {v14, v8, v11, v10}, Landroidx/fragment/app/FragmentTransitionImpl;->swapSharedElementTargets(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/util/ArrayList;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_7
2020-05-17 12:40:10 +00:00
return-void
.end method
.method public 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;-><init>()V
invoke-virtual {p1, p2, p0}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
:cond_0
return-object p0
.end method
.method public 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/SimpleArrayMap;->size()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_1
invoke-virtual {p0, v1}, Landroidx/collection/SimpleArrayMap;->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/SimpleArrayMap;->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 public 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 public 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 public 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/FragmentTransaction;->mSharedElementSourceNames:Ljava/util/ArrayList;
if-eqz p2, :cond_1
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/FragmentTransaction;->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/FragmentTransaction;->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/SimpleArrayMap;->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 public 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 public 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 public 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;
2020-07-08 16:44:49 +00:00
new-instance p1, Landroidx/fragment/app/FragmentTransition$2;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p1, p3}, Landroidx/fragment/app/FragmentTransition$2;-><init>(Ljava/util/ArrayList;)V
2020-05-17 12:40:10 +00:00
invoke-static {p0, p1}, Landroidx/core/view/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/core/view/OneShotPreDrawListener;
:cond_0
return-void
.end method
.method public static resolveSupportImpl()Landroidx/fragment/app/FragmentTransitionImpl;
.locals 3
2020-07-08 16:44:49 +00:00
:try_start_0
2020-05-17 12:40:10 +00:00
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 public 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/SimpleArrayMap;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_1
invoke-virtual {p0, v0}, Landroidx/collection/SimpleArrayMap;->valueAt(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-virtual {p1, v1}, Landroidx/collection/SimpleArrayMap;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_0
invoke-virtual {p0, v0}, Landroidx/collection/SimpleArrayMap;->removeAt(I)Ljava/lang/Object;
:cond_0
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_1
return-void
.end method
.method public 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
2020-07-08 16:44:49 +00:00
new-instance v9, Landroidx/fragment/app/FragmentTransition$4;
2020-05-17 12:40:10 +00:00
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
2020-07-08 16:44:49 +00:00
invoke-direct/range {v0 .. v8}, Landroidx/fragment/app/FragmentTransition$4;-><init>(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
2020-05-17 12:40:10 +00:00
move-object v0, p1
invoke-static {p1, v9}, Landroidx/core/view/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/core/view/OneShotPreDrawListener;
return-void
.end method
.method public 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/FragmentTransaction;->mSharedElementSourceNames:Ljava/util/ArrayList;
if-eqz v0, :cond_1
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/FragmentTransaction;->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/FragmentTransaction;->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/SimpleArrayMap;->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 public 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
2020-07-08 16:44:49 +00:00
.method public static startTransitions(Landroidx/fragment/app/FragmentManager;Ljava/util/ArrayList;Ljava/util/ArrayList;IIZLandroidx/fragment/app/FragmentTransition$Callback;)V
.locals 16
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-07-08 16:44:49 +00:00
"Landroidx/fragment/app/FragmentManager;",
2020-05-17 12:40:10 +00:00
"Ljava/util/ArrayList<",
"Landroidx/fragment/app/BackStackRecord;",
">;",
"Ljava/util/ArrayList<",
"Ljava/lang/Boolean;",
2020-07-08 16:44:49 +00:00
">;IIZ",
"Landroidx/fragment/app/FragmentTransition$Callback;",
")V"
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-07-08 16:44:49 +00:00
move-object/from16 v6, p0
move-object/from16 v7, p1
move-object/from16 v8, p2
move/from16 v9, p4
move/from16 v10, p5
iget v0, v6, Landroidx/fragment/app/FragmentManager;->mCurState:I
2020-05-17 12:40:10 +00:00
const/4 v1, 0x1
if-ge v0, v1, :cond_0
return-void
:cond_0
2020-07-08 16:44:49 +00:00
new-instance v11, Landroid/util/SparseArray;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v11}, Landroid/util/SparseArray;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move/from16 v0, p3
2020-05-17 12:40:10 +00:00
:goto_0
2020-07-08 16:44:49 +00:00
if-ge v0, v9, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v7, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v1, Landroidx/fragment/app/BackStackRecord;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v8, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v2, Ljava/lang/Boolean;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v2, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v1, v11, v10}, Landroidx/fragment/app/FragmentTransition;->calculatePopFragments(Landroidx/fragment/app/BackStackRecord;Landroid/util/SparseArray;Z)V
2020-05-17 12:40:10 +00:00
goto :goto_1
:cond_1
2020-07-08 16:44:49 +00:00
invoke-static {v1, v11, v10}, Landroidx/fragment/app/FragmentTransition;->calculateFragments(Landroidx/fragment/app/BackStackRecord;Landroid/util/SparseArray;Z)V
2020-05-17 12:40:10 +00:00
:goto_1
2020-07-08 16:44:49 +00:00
add-int/lit8 v0, v0, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_2
2020-07-08 16:44:49 +00:00
invoke-virtual {v11}, Landroid/util/SparseArray;->size()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v12, Landroid/view/View;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, v6, Landroidx/fragment/app/FragmentManager;->mHost:Landroidx/fragment/app/FragmentHostCallback;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v12, v0}, Landroid/view/View;-><init>(Landroid/content/Context;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v11}, Landroid/util/SparseArray;->size()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v13
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v14, 0x0
2020-05-17 12:40:10 +00:00
:goto_2
2020-07-08 16:44:49 +00:00
if-ge v14, v13, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v11, v14}, Landroid/util/SparseArray;->keyAt(I)I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move/from16 v15, p3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v1, v7, v8, v15, v9}, Landroidx/fragment/app/FragmentTransition;->calculateNameOverrides(ILjava/util/ArrayList;Ljava/util/ArrayList;II)Landroidx/collection/ArrayMap;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v11, v14}, Landroid/util/SparseArray;->valueAt(I)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v2, v0
check-cast v2, Landroidx/fragment/app/FragmentTransition$FragmentContainerTransition;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v10, :cond_3
move-object/from16 v0, p0
move-object v3, v12
move-object/from16 v5, p6
invoke-static/range {v0 .. v5}, Landroidx/fragment/app/FragmentTransition;->configureTransitionsReordered(Landroidx/fragment/app/FragmentManager;ILandroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/view/View;Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$Callback;)V
2020-05-17 12:40:10 +00:00
goto :goto_3
:cond_3
2020-07-08 16:44:49 +00:00
move-object/from16 v0, p0
move-object v3, v12
move-object/from16 v5, p6
invoke-static/range {v0 .. v5}, Landroidx/fragment/app/FragmentTransition;->configureTransitionsOrdered(Landroidx/fragment/app/FragmentManager;ILandroidx/fragment/app/FragmentTransition$FragmentContainerTransition;Landroid/view/View;Landroidx/collection/ArrayMap;Landroidx/fragment/app/FragmentTransition$Callback;)V
2020-05-17 12:40:10 +00:00
:goto_3
2020-07-08 16:44:49 +00:00
add-int/lit8 v14, v14, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_2
:cond_4
return-void
.end method
.method public 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
goto :goto_1
:cond_1
:goto_0
const/4 v0, 0x1
:goto_1
return v0
.end method