69 lines
1.8 KiB
Smali
69 lines
1.8 KiB
Smali
.class public Lcom/moji/user/message/MsgLiveViewPagerAdapter;
|
|
.super Landroid/support/v4/app/FragmentPagerAdapter;
|
|
.source "MsgLiveViewPagerAdapter.java"
|
|
|
|
|
|
# instance fields
|
|
.field private final a:Landroid/util/SparseArray;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/util/SparseArray<",
|
|
"Lcom/moji/user/message/fragment/BaseMsgFragment;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/support/v4/app/FragmentManager;Landroid/util/SparseArray;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/support/v4/app/FragmentManager;",
|
|
"Landroid/util/SparseArray<",
|
|
"Lcom/moji/user/message/fragment/BaseMsgFragment;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 19
|
|
invoke-direct {p0, p1}, Landroid/support/v4/app/FragmentPagerAdapter;-><init>(Landroid/support/v4/app/FragmentManager;)V
|
|
|
|
.line 20
|
|
iput-object p2, p0, Lcom/moji/user/message/MsgLiveViewPagerAdapter;->a:Landroid/util/SparseArray;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getCount()I
|
|
.locals 1
|
|
|
|
.line 30
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgLiveViewPagerAdapter;->a:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v0}, Landroid/util/SparseArray;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getItem(I)Landroid/support/v4/app/Fragment;
|
|
.locals 1
|
|
|
|
.line 25
|
|
iget-object v0, p0, Lcom/moji/user/message/MsgLiveViewPagerAdapter;->a:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/support/v4/app/Fragment;
|
|
|
|
return-object p1
|
|
.end method
|