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

597 lines
18 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Landroidx/fragment/app/BackStackState;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "BackStackRecord.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Landroid/os/Parcelable;
# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/Parcelable$Creator<",
"Landroidx/fragment/app/BackStackState;",
">;"
}
.end annotation
.end field
# instance fields
.field final mBreadCrumbShortTitleRes:I
.field final mBreadCrumbShortTitleText:Ljava/lang/CharSequence;
.field final mBreadCrumbTitleRes:I
.field final mBreadCrumbTitleText:Ljava/lang/CharSequence;
.field final mIndex:I
.field final mName:Ljava/lang/String;
.field final mOps:[I
.field final mReorderingAllowed:Z
.field final mSharedElementSourceNames:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field final mSharedElementTargetNames:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field final mTransition:I
.field final mTransitionStyle:I
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/fragment/app/BackStackState$1;
invoke-direct {v0}, Landroidx/fragment/app/BackStackState$1;-><init>()V
sput-object v0, Landroidx/fragment/app/BackStackState;->CREATOR:Landroid/os/Parcelable$Creator;
return-void
.end method
.method public constructor <init>(Landroid/os/Parcel;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-virtual {p1}, Landroid/os/Parcel;->createIntArray()[I
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
iput v0, p0, Landroidx/fragment/app/BackStackState;->mTransition:I
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
iput v0, p0, Landroidx/fragment/app/BackStackState;->mTransitionStyle:I
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mName:Ljava/lang/String;
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
iput v0, p0, Landroidx/fragment/app/BackStackState;->mIndex:I
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
iput v0, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbTitleRes:I
sget-object v0, Landroid/text/TextUtils;->CHAR_SEQUENCE_CREATOR:Landroid/os/Parcelable$Creator;
invoke-interface {v0, p1}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/CharSequence;
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbTitleText:Ljava/lang/CharSequence;
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
iput v0, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbShortTitleRes:I
sget-object v0, Landroid/text/TextUtils;->CHAR_SEQUENCE_CREATOR:Landroid/os/Parcelable$Creator;
invoke-interface {v0, p1}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/CharSequence;
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbShortTitleText:Ljava/lang/CharSequence;
invoke-virtual {p1}, Landroid/os/Parcel;->createStringArrayList()Ljava/util/ArrayList;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mSharedElementSourceNames:Ljava/util/ArrayList;
invoke-virtual {p1}, Landroid/os/Parcel;->createStringArrayList()Ljava/util/ArrayList;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mSharedElementTargetNames:Ljava/util/ArrayList;
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
iput-boolean p1, p0, Landroidx/fragment/app/BackStackState;->mReorderingAllowed:Z
return-void
.end method
.method public constructor <init>(Landroidx/fragment/app/BackStackRecord;)V
.locals 7
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iget-object v0, p1, Landroidx/fragment/app/BackStackRecord;->mOps:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
mul-int/lit8 v1, v0, 0x6
new-array v1, v1, [I
iput-object v1, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
iget-boolean v1, p1, Landroidx/fragment/app/BackStackRecord;->mAddToBackStack:Z
if-eqz v1, :cond_2
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v1, v0, :cond_1
iget-object v3, p1, Landroidx/fragment/app/BackStackRecord;->mOps:Ljava/util/ArrayList;
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/fragment/app/BackStackRecord$Op;
iget-object v4, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
add-int/lit8 v5, v2, 0x1
iget v6, v3, Landroidx/fragment/app/BackStackRecord$Op;->cmd:I
aput v6, v4, v2
iget-object v2, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
add-int/lit8 v4, v5, 0x1
iget-object v6, v3, Landroidx/fragment/app/BackStackRecord$Op;->fragment:Landroidx/fragment/app/Fragment;
if-eqz v6, :cond_0
iget-object v6, v3, Landroidx/fragment/app/BackStackRecord$Op;->fragment:Landroidx/fragment/app/Fragment;
iget v6, v6, Landroidx/fragment/app/Fragment;->mIndex:I
goto :goto_1
:cond_0
const/4 v6, -0x1
:goto_1
aput v6, v2, v5
iget-object v2, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
add-int/lit8 v5, v4, 0x1
iget v6, v3, Landroidx/fragment/app/BackStackRecord$Op;->enterAnim:I
aput v6, v2, v4
iget-object v2, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
add-int/lit8 v4, v5, 0x1
iget v6, v3, Landroidx/fragment/app/BackStackRecord$Op;->exitAnim:I
aput v6, v2, v5
iget-object v2, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
add-int/lit8 v5, v4, 0x1
iget v6, v3, Landroidx/fragment/app/BackStackRecord$Op;->popEnterAnim:I
aput v6, v2, v4
iget-object v2, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
add-int/lit8 v4, v5, 0x1
iget v3, v3, Landroidx/fragment/app/BackStackRecord$Op;->popExitAnim:I
aput v3, v2, v5
add-int/lit8 v1, v1, 0x1
move v2, v4
goto :goto_0
:cond_1
iget v0, p1, Landroidx/fragment/app/BackStackRecord;->mTransition:I
iput v0, p0, Landroidx/fragment/app/BackStackState;->mTransition:I
iget v0, p1, Landroidx/fragment/app/BackStackRecord;->mTransitionStyle:I
iput v0, p0, Landroidx/fragment/app/BackStackState;->mTransitionStyle:I
iget-object v0, p1, Landroidx/fragment/app/BackStackRecord;->mName:Ljava/lang/String;
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mName:Ljava/lang/String;
iget v0, p1, Landroidx/fragment/app/BackStackRecord;->mIndex:I
iput v0, p0, Landroidx/fragment/app/BackStackState;->mIndex:I
iget v0, p1, Landroidx/fragment/app/BackStackRecord;->mBreadCrumbTitleRes:I
iput v0, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbTitleRes:I
iget-object v0, p1, Landroidx/fragment/app/BackStackRecord;->mBreadCrumbTitleText:Ljava/lang/CharSequence;
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbTitleText:Ljava/lang/CharSequence;
iget v0, p1, Landroidx/fragment/app/BackStackRecord;->mBreadCrumbShortTitleRes:I
iput v0, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbShortTitleRes:I
iget-object v0, p1, Landroidx/fragment/app/BackStackRecord;->mBreadCrumbShortTitleText:Ljava/lang/CharSequence;
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbShortTitleText:Ljava/lang/CharSequence;
iget-object v0, p1, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList;
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mSharedElementSourceNames:Ljava/util/ArrayList;
iget-object v0, p1, Landroidx/fragment/app/BackStackRecord;->mSharedElementTargetNames:Ljava/util/ArrayList;
iput-object v0, p0, Landroidx/fragment/app/BackStackState;->mSharedElementTargetNames:Ljava/util/ArrayList;
iget-boolean p1, p1, Landroidx/fragment/app/BackStackRecord;->mReorderingAllowed:Z
iput-boolean p1, p0, Landroidx/fragment/app/BackStackState;->mReorderingAllowed:Z
return-void
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Not on back stack"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
# virtual methods
.method public final describeContents()I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public final instantiate(Landroidx/fragment/app/FragmentManagerImpl;)Landroidx/fragment/app/BackStackRecord;
.locals 7
new-instance v0, Landroidx/fragment/app/BackStackRecord;
invoke-direct {v0, p1}, Landroidx/fragment/app/BackStackRecord;-><init>(Landroidx/fragment/app/FragmentManagerImpl;)V
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
iget-object v3, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
array-length v3, v3
if-ge v1, v3, :cond_2
new-instance v3, Landroidx/fragment/app/BackStackRecord$Op;
invoke-direct {v3}, Landroidx/fragment/app/BackStackRecord$Op;-><init>()V
iget-object v4, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
add-int/lit8 v5, v1, 0x1
aget v1, v4, v1
iput v1, v3, Landroidx/fragment/app/BackStackRecord$Op;->cmd:I
sget-boolean v1, Landroidx/fragment/app/FragmentManagerImpl;->DEBUG:Z
if-eqz v1, :cond_0
const-string v1, "FragmentManager"
new-instance v4, Ljava/lang/StringBuilder;
const-string v6, "Instantiate "
invoke-direct {v4, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v6, " op #"
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v6, " base fragment #"
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v6, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
aget v6, v6, v5
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-static {v1, v4}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
iget-object v1, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
add-int/lit8 v4, v5, 0x1
aget v1, v1, v5
if-ltz v1, :cond_1
iget-object v5, p1, Landroidx/fragment/app/FragmentManagerImpl;->mActive:Landroid/util/SparseArray;
invoke-virtual {v5, v1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
iput-object v1, v3, Landroidx/fragment/app/BackStackRecord$Op;->fragment:Landroidx/fragment/app/Fragment;
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:cond_1
const/4 v1, 0x0
2019-02-04 20:29:01 +00:00
iput-object v1, v3, Landroidx/fragment/app/BackStackRecord$Op;->fragment:Landroidx/fragment/app/Fragment;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
iget-object v1, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
add-int/lit8 v5, v4, 0x1
2019-02-04 20:29:01 +00:00
aget v4, v1, v4
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iput v4, v3, Landroidx/fragment/app/BackStackRecord$Op;->enterAnim:I
2019-02-04 20:08:30 +00:00
add-int/lit8 v4, v5, 0x1
2019-02-04 20:29:01 +00:00
aget v5, v1, v5
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iput v5, v3, Landroidx/fragment/app/BackStackRecord$Op;->exitAnim:I
2019-02-04 20:08:30 +00:00
add-int/lit8 v5, v4, 0x1
2019-02-04 20:29:01 +00:00
aget v4, v1, v4
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iput v4, v3, Landroidx/fragment/app/BackStackRecord$Op;->popEnterAnim:I
2019-02-04 20:08:30 +00:00
add-int/lit8 v4, v5, 0x1
aget v1, v1, v5
iput v1, v3, Landroidx/fragment/app/BackStackRecord$Op;->popExitAnim:I
iget v1, v3, Landroidx/fragment/app/BackStackRecord$Op;->enterAnim:I
iput v1, v0, Landroidx/fragment/app/BackStackRecord;->mEnterAnim:I
iget v1, v3, Landroidx/fragment/app/BackStackRecord$Op;->exitAnim:I
iput v1, v0, Landroidx/fragment/app/BackStackRecord;->mExitAnim:I
iget v1, v3, Landroidx/fragment/app/BackStackRecord$Op;->popEnterAnim:I
iput v1, v0, Landroidx/fragment/app/BackStackRecord;->mPopEnterAnim:I
iget v1, v3, Landroidx/fragment/app/BackStackRecord$Op;->popExitAnim:I
iput v1, v0, Landroidx/fragment/app/BackStackRecord;->mPopExitAnim:I
invoke-virtual {v0, v3}, Landroidx/fragment/app/BackStackRecord;->addOp(Landroidx/fragment/app/BackStackRecord$Op;)V
add-int/lit8 v2, v2, 0x1
move v1, v4
goto/16 :goto_0
:cond_2
iget p1, p0, Landroidx/fragment/app/BackStackState;->mTransition:I
iput p1, v0, Landroidx/fragment/app/BackStackRecord;->mTransition:I
iget p1, p0, Landroidx/fragment/app/BackStackState;->mTransitionStyle:I
iput p1, v0, Landroidx/fragment/app/BackStackRecord;->mTransitionStyle:I
iget-object p1, p0, Landroidx/fragment/app/BackStackState;->mName:Ljava/lang/String;
iput-object p1, v0, Landroidx/fragment/app/BackStackRecord;->mName:Ljava/lang/String;
iget p1, p0, Landroidx/fragment/app/BackStackState;->mIndex:I
iput p1, v0, Landroidx/fragment/app/BackStackRecord;->mIndex:I
const/4 p1, 0x1
iput-boolean p1, v0, Landroidx/fragment/app/BackStackRecord;->mAddToBackStack:Z
iget v1, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbTitleRes:I
iput v1, v0, Landroidx/fragment/app/BackStackRecord;->mBreadCrumbTitleRes:I
iget-object v1, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbTitleText:Ljava/lang/CharSequence;
iput-object v1, v0, Landroidx/fragment/app/BackStackRecord;->mBreadCrumbTitleText:Ljava/lang/CharSequence;
iget v1, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbShortTitleRes:I
iput v1, v0, Landroidx/fragment/app/BackStackRecord;->mBreadCrumbShortTitleRes:I
iget-object v1, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbShortTitleText:Ljava/lang/CharSequence;
iput-object v1, v0, Landroidx/fragment/app/BackStackRecord;->mBreadCrumbShortTitleText:Ljava/lang/CharSequence;
iget-object v1, p0, Landroidx/fragment/app/BackStackState;->mSharedElementSourceNames:Ljava/util/ArrayList;
iput-object v1, v0, Landroidx/fragment/app/BackStackRecord;->mSharedElementSourceNames:Ljava/util/ArrayList;
iget-object v1, p0, Landroidx/fragment/app/BackStackState;->mSharedElementTargetNames:Ljava/util/ArrayList;
iput-object v1, v0, Landroidx/fragment/app/BackStackRecord;->mSharedElementTargetNames:Ljava/util/ArrayList;
iget-boolean v1, p0, Landroidx/fragment/app/BackStackState;->mReorderingAllowed:Z
iput-boolean v1, v0, Landroidx/fragment/app/BackStackRecord;->mReorderingAllowed:Z
invoke-virtual {v0, p1}, Landroidx/fragment/app/BackStackRecord;->bumpBackStackNesting(I)V
return-object v0
.end method
.method public final writeToParcel(Landroid/os/Parcel;I)V
.locals 1
iget-object p2, p0, Landroidx/fragment/app/BackStackState;->mOps:[I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeIntArray([I)V
iget p2, p0, Landroidx/fragment/app/BackStackState;->mTransition:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget p2, p0, Landroidx/fragment/app/BackStackState;->mTransitionStyle:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget-object p2, p0, Landroidx/fragment/app/BackStackState;->mName:Ljava/lang/String;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
iget p2, p0, Landroidx/fragment/app/BackStackState;->mIndex:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget p2, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbTitleRes:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget-object p2, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbTitleText:Ljava/lang/CharSequence;
const/4 v0, 0x0
invoke-static {p2, p1, v0}, Landroid/text/TextUtils;->writeToParcel(Ljava/lang/CharSequence;Landroid/os/Parcel;I)V
iget p2, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbShortTitleRes:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget-object p2, p0, Landroidx/fragment/app/BackStackState;->mBreadCrumbShortTitleText:Ljava/lang/CharSequence;
invoke-static {p2, p1, v0}, Landroid/text/TextUtils;->writeToParcel(Ljava/lang/CharSequence;Landroid/os/Parcel;I)V
iget-object p2, p0, Landroidx/fragment/app/BackStackState;->mSharedElementSourceNames:Ljava/util/ArrayList;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeStringList(Ljava/util/List;)V
iget-object p2, p0, Landroidx/fragment/app/BackStackState;->mSharedElementTargetNames:Ljava/util/ArrayList;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeStringList(Ljava/util/List;)V
iget-boolean p2, p0, Landroidx/fragment/app/BackStackState;->mReorderingAllowed:Z
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
return-void
.end method