apkfuckery/com.discord/smali/androidx/viewpager/widget/ViewPager$SavedState.smali

149 lines
4.2 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Landroidx/viewpager/widget/ViewPager$SavedState;
.super Landroidx/customview/view/AbsSavedState;
2019-02-04 20:05:16 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2019-02-04 20:08:30 +00:00
value = Landroidx/viewpager/widget/ViewPager;
2019-02-04 20:05:16 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "SavedState"
.end annotation
# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
2019-02-04 20:08:30 +00:00
"Landroid/os/Parcelable$Creator<",
"Landroidx/viewpager/widget/ViewPager$SavedState;",
2019-02-04 20:05:16 +00:00
">;"
}
.end annotation
.end field
# instance fields
.field adapterState:Landroid/os/Parcelable;
.field loader:Ljava/lang/ClassLoader;
.field position:I
# direct methods
.method static constructor <clinit>()V
.locals 1
2019-02-04 20:08:30 +00:00
new-instance v0, Landroidx/viewpager/widget/ViewPager$SavedState$1;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {v0}, Landroidx/viewpager/widget/ViewPager$SavedState$1;-><init>()V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
sput-object v0, Landroidx/viewpager/widget/ViewPager$SavedState;->CREATOR:Landroid/os/Parcelable$Creator;
2019-02-04 20:05:16 +00:00
return-void
.end method
.method constructor <init>(Landroid/os/Parcel;Ljava/lang/ClassLoader;)V
.locals 1
2019-02-04 20:08:30 +00:00
invoke-direct {p0, p1, p2}, Landroidx/customview/view/AbsSavedState;-><init>(Landroid/os/Parcel;Ljava/lang/ClassLoader;)V
2019-02-04 20:05:16 +00:00
if-nez p2, :cond_0
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
2019-02-04 20:08:30 +00:00
move-result-object p2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p2}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
2019-02-04 20:05:16 +00:00
move-result-object p2
:cond_0
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
2019-02-04 20:08:30 +00:00
iput v0, p0, Landroidx/viewpager/widget/ViewPager$SavedState;->position:I
2019-02-04 20:05:16 +00:00
invoke-virtual {p1, p2}, Landroid/os/Parcel;->readParcelable(Ljava/lang/ClassLoader;)Landroid/os/Parcelable;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput-object p1, p0, Landroidx/viewpager/widget/ViewPager$SavedState;->adapterState:Landroid/os/Parcelable;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iput-object p2, p0, Landroidx/viewpager/widget/ViewPager$SavedState;->loader:Ljava/lang/ClassLoader;
2019-02-04 20:05:16 +00:00
return-void
.end method
.method public constructor <init>(Landroid/os/Parcelable;)V
.locals 0
2019-02-04 20:08:30 +00:00
.param p1 # Landroid/os/Parcelable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {p0, p1}, Landroidx/customview/view/AbsSavedState;-><init>(Landroid/os/Parcelable;)V
2019-02-04 20:05:16 +00:00
return-void
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "FragmentPager.SavedState{"
2019-02-04 20:08:30 +00:00
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-04 20:05:16 +00:00
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " position="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
iget v1, p0, Landroidx/viewpager/widget/ViewPager$SavedState;->position:I
2019-02-04 20:05:16 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, "}"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public writeToParcel(Landroid/os/Parcel;I)V
.locals 1
2019-02-04 20:08:30 +00:00
invoke-super {p0, p1, p2}, Landroidx/customview/view/AbsSavedState;->writeToParcel(Landroid/os/Parcel;I)V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iget v0, p0, Landroidx/viewpager/widget/ViewPager$SavedState;->position:I
2019-02-04 20:05:16 +00:00
invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeInt(I)V
2019-02-04 20:08:30 +00:00
iget-object v0, p0, Landroidx/viewpager/widget/ViewPager$SavedState;->adapterState:Landroid/os/Parcelable;
2019-02-04 20:05:16 +00:00
invoke-virtual {p1, v0, p2}, Landroid/os/Parcel;->writeParcelable(Landroid/os/Parcelable;I)V
return-void
.end method