apkfuckery/com.discord/smali/androidx/fragment/app/FragmentState.smali
2020-11-12 02:11:44 +00:00

459 lines
12 KiB
Smali

.class public final Landroidx/fragment/app/FragmentState;
.super Ljava/lang/Object;
.source "FragmentState.java"
# interfaces
.implements Landroid/os/Parcelable;
# annotations
.annotation build Landroid/annotation/SuppressLint;
value = {
"BanParcelableUsage"
}
.end annotation
# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/Parcelable$Creator<",
"Landroidx/fragment/app/FragmentState;",
">;"
}
.end annotation
.end field
# instance fields
.field public final mArguments:Landroid/os/Bundle;
.field public final mClassName:Ljava/lang/String;
.field public final mContainerId:I
.field public final mDetached:Z
.field public final mFragmentId:I
.field public final mFromLayout:Z
.field public final mHidden:Z
.field public final mMaxLifecycleState:I
.field public final mRemoving:Z
.field public final mRetainInstance:Z
.field public mSavedFragmentState:Landroid/os/Bundle;
.field public final mTag:Ljava/lang/String;
.field public final mWho:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/fragment/app/FragmentState$1;
invoke-direct {v0}, Landroidx/fragment/app/FragmentState$1;-><init>()V
sput-object v0, Landroidx/fragment/app/FragmentState;->CREATOR:Landroid/os/Parcelable$Creator;
return-void
.end method
.method public constructor <init>(Landroid/os/Parcel;)V
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/FragmentState;->mClassName:Ljava/lang/String;
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/FragmentState;->mWho:Ljava/lang/String;
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
const/4 v1, 0x1
const/4 v2, 0x0
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentState;->mFromLayout:Z
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
iput v0, p0, Landroidx/fragment/app/FragmentState;->mFragmentId:I
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
iput v0, p0, Landroidx/fragment/app/FragmentState;->mContainerId:I
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/FragmentState;->mTag:Ljava/lang/String;
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
if-eqz v0, :cond_1
const/4 v0, 0x1
goto :goto_1
:cond_1
const/4 v0, 0x0
:goto_1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentState;->mRetainInstance:Z
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
if-eqz v0, :cond_2
const/4 v0, 0x1
goto :goto_2
:cond_2
const/4 v0, 0x0
:goto_2
iput-boolean v0, p0, Landroidx/fragment/app/FragmentState;->mRemoving:Z
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
if-eqz v0, :cond_3
const/4 v0, 0x1
goto :goto_3
:cond_3
const/4 v0, 0x0
:goto_3
iput-boolean v0, p0, Landroidx/fragment/app/FragmentState;->mDetached:Z
invoke-virtual {p1}, Landroid/os/Parcel;->readBundle()Landroid/os/Bundle;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/FragmentState;->mArguments:Landroid/os/Bundle;
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
if-eqz v0, :cond_4
goto :goto_4
:cond_4
const/4 v1, 0x0
:goto_4
iput-boolean v1, p0, Landroidx/fragment/app/FragmentState;->mHidden:Z
invoke-virtual {p1}, Landroid/os/Parcel;->readBundle()Landroid/os/Bundle;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result p1
iput p1, p0, Landroidx/fragment/app/FragmentState;->mMaxLifecycleState:I
return-void
.end method
.method public constructor <init>(Landroidx/fragment/app/Fragment;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/FragmentState;->mClassName:Ljava/lang/String;
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
iput-object v0, p0, Landroidx/fragment/app/FragmentState;->mWho:Ljava/lang/String;
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mFromLayout:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentState;->mFromLayout:Z
iget v0, p1, Landroidx/fragment/app/Fragment;->mFragmentId:I
iput v0, p0, Landroidx/fragment/app/FragmentState;->mFragmentId:I
iget v0, p1, Landroidx/fragment/app/Fragment;->mContainerId:I
iput v0, p0, Landroidx/fragment/app/FragmentState;->mContainerId:I
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mTag:Ljava/lang/String;
iput-object v0, p0, Landroidx/fragment/app/FragmentState;->mTag:Ljava/lang/String;
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mRetainInstance:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentState;->mRetainInstance:Z
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mRemoving:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentState;->mRemoving:Z
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mDetached:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentState;->mDetached:Z
iget-object v0, p1, Landroidx/fragment/app/Fragment;->mArguments:Landroid/os/Bundle;
iput-object v0, p0, Landroidx/fragment/app/FragmentState;->mArguments:Landroid/os/Bundle;
iget-boolean v0, p1, Landroidx/fragment/app/Fragment;->mHidden:Z
iput-boolean v0, p0, Landroidx/fragment/app/FragmentState;->mHidden:Z
iget-object p1, p1, Landroidx/fragment/app/Fragment;->mMaxState:Landroidx/lifecycle/Lifecycle$State;
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
move-result p1
iput p1, p0, Landroidx/fragment/app/FragmentState;->mMaxLifecycleState:I
return-void
.end method
# virtual methods
.method public describeContents()I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0x80
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v1, "FragmentState{"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/fragment/app/FragmentState;->mClassName:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " ("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/fragment/app/FragmentState;->mWho:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ")}:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v1, p0, Landroidx/fragment/app/FragmentState;->mFromLayout:Z
if-eqz v1, :cond_0
const-string v1, " fromLayout"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_0
iget v1, p0, Landroidx/fragment/app/FragmentState;->mContainerId:I
if-eqz v1, :cond_1
const-string v1, " id=0x"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/fragment/app/FragmentState;->mContainerId:I
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentState;->mTag:Ljava/lang/String;
if-eqz v1, :cond_2
invoke-virtual {v1}, Ljava/lang/String;->isEmpty()Z
move-result v1
if-nez v1, :cond_2
const-string v1, " tag="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/fragment/app/FragmentState;->mTag:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_2
iget-boolean v1, p0, Landroidx/fragment/app/FragmentState;->mRetainInstance:Z
if-eqz v1, :cond_3
const-string v1, " retainInstance"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_3
iget-boolean v1, p0, Landroidx/fragment/app/FragmentState;->mRemoving:Z
if-eqz v1, :cond_4
const-string v1, " removing"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_4
iget-boolean v1, p0, Landroidx/fragment/app/FragmentState;->mDetached:Z
if-eqz v1, :cond_5
const-string v1, " detached"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_5
iget-boolean v1, p0, Landroidx/fragment/app/FragmentState;->mHidden:Z
if-eqz v1, :cond_6
const-string v1, " hidden"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_6
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public writeToParcel(Landroid/os/Parcel;I)V
.locals 0
iget-object p2, p0, Landroidx/fragment/app/FragmentState;->mClassName:Ljava/lang/String;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
iget-object p2, p0, Landroidx/fragment/app/FragmentState;->mWho:Ljava/lang/String;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
iget-boolean p2, p0, Landroidx/fragment/app/FragmentState;->mFromLayout:Z
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget p2, p0, Landroidx/fragment/app/FragmentState;->mFragmentId:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget p2, p0, Landroidx/fragment/app/FragmentState;->mContainerId:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget-object p2, p0, Landroidx/fragment/app/FragmentState;->mTag:Ljava/lang/String;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
iget-boolean p2, p0, Landroidx/fragment/app/FragmentState;->mRetainInstance:Z
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget-boolean p2, p0, Landroidx/fragment/app/FragmentState;->mRemoving:Z
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget-boolean p2, p0, Landroidx/fragment/app/FragmentState;->mDetached:Z
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget-object p2, p0, Landroidx/fragment/app/FragmentState;->mArguments:Landroid/os/Bundle;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeBundle(Landroid/os/Bundle;)V
iget-boolean p2, p0, Landroidx/fragment/app/FragmentState;->mHidden:Z
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
iget-object p2, p0, Landroidx/fragment/app/FragmentState;->mSavedFragmentState:Landroid/os/Bundle;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeBundle(Landroid/os/Bundle;)V
iget p2, p0, Landroidx/fragment/app/FragmentState;->mMaxLifecycleState:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
return-void
.end method