438 lines
13 KiB
Smali
438 lines
13 KiB
Smali
.class public abstract Lcom/moji/user/message/old/BaseMsgOldFragment;
|
|
.super Lcom/moji/base/MJFragment;
|
|
.source "BaseMsgOldFragment.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/AdapterView$OnItemClickListener;
|
|
.implements Lcom/moji/user/message/old/MsgDetailAdapter$OnInitAdapterDataListener;
|
|
|
|
|
|
# instance fields
|
|
.field protected b:Lcom/moji/user/message/old/MsgDetailAdapter;
|
|
|
|
.field protected c:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/ugc/bean/MsgInfo;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field protected d:Ljava/lang/String;
|
|
|
|
.field protected e:Landroid/widget/ListView;
|
|
|
|
.field protected f:Landroid/widget/ImageView;
|
|
|
|
.field protected g:Landroid/widget/RelativeLayout;
|
|
|
|
.field protected h:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
.field private i:Landroid/widget/LinearLayout;
|
|
|
|
.field private j:Z
|
|
|
|
.field private k:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
.field private l:Z
|
|
|
|
.field private m:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 37
|
|
invoke-direct {p0}, Lcom/moji/base/MJFragment;-><init>()V
|
|
|
|
.line 39
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->c:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/view/View;)V
|
|
.locals 3
|
|
|
|
.line 61
|
|
sget v0, Lcom/moji/user/R$id;->mj_title_bar:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->h:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
.line 62
|
|
sget v0, Lcom/moji/user/R$id;->status_layout:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->m:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
.line 63
|
|
sget v0, Lcom/moji/user/R$id;->ptfc_msg:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->k:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
.line 64
|
|
iget-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->k:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
const-wide/16 v1, 0x320
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setMinKeepTime(J)V
|
|
|
|
.line 65
|
|
sget v0, Lcom/moji/user/R$id;->lv_message:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ListView;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->e:Landroid/widget/ListView;
|
|
|
|
.line 66
|
|
sget v0, Lcom/moji/user/R$id;->iv_apply_line:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
iput-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->f:Landroid/widget/ImageView;
|
|
|
|
.line 67
|
|
sget v0, Lcom/moji/user/R$id;->bl_air_nut_visit_apply:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/RelativeLayout;
|
|
|
|
iput-object p1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->g:Landroid/widget/RelativeLayout;
|
|
|
|
.line 68
|
|
new-instance p1, Lcom/moji/user/message/old/MsgDetailAdapter;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/user/message/old/BaseMsgOldFragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->c:Ljava/util/List;
|
|
|
|
invoke-direct {p1, v0, v1, p0}, Lcom/moji/user/message/old/MsgDetailAdapter;-><init>(Landroid/content/Context;Ljava/util/List;Lcom/moji/user/message/old/MsgDetailAdapter$OnInitAdapterDataListener;)V
|
|
|
|
iput-object p1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->b:Lcom/moji/user/message/old/MsgDetailAdapter;
|
|
|
|
.line 69
|
|
invoke-virtual {p0}, Lcom/moji/user/message/old/BaseMsgOldFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "layout_inflater"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v4/app/FragmentActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/view/LayoutInflater;
|
|
|
|
.line 70
|
|
sget v0, Lcom/moji/user/R$layout;->msg_loading_view:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/LinearLayout;
|
|
|
|
iput-object p1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->i:Landroid/widget/LinearLayout;
|
|
|
|
.line 71
|
|
iget-object p1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->i:Landroid/widget/LinearLayout;
|
|
|
|
const v0, -0x12110d
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V
|
|
|
|
.line 72
|
|
iget-object p1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->e:Landroid/widget/ListView;
|
|
|
|
iget-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->i:Landroid/widget/LinearLayout;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V
|
|
|
|
.line 73
|
|
iget-object p1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->e:Landroid/widget/ListView;
|
|
|
|
iget-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->b:Lcom/moji/user/message/old/MsgDetailAdapter;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V
|
|
|
|
.line 74
|
|
iget-object p1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->e:Landroid/widget/ListView;
|
|
|
|
invoke-virtual {p1, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V
|
|
|
|
.line 75
|
|
invoke-virtual {p0}, Lcom/moji/user/message/old/BaseMsgOldFragment;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/message/old/BaseMsgOldFragment;)Z
|
|
.locals 0
|
|
|
|
.line 37
|
|
iget-boolean p0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->j:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/message/old/BaseMsgOldFragment;Z)Z
|
|
.locals 0
|
|
|
|
.line 37
|
|
iput-boolean p1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->j:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/message/old/BaseMsgOldFragment;)Z
|
|
.locals 0
|
|
|
|
.line 37
|
|
iget-boolean p0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->l:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/message/old/BaseMsgOldFragment;Z)Z
|
|
.locals 0
|
|
|
|
.line 37
|
|
iput-boolean p1, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->l:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/user/message/old/BaseMsgOldFragment;)Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
.locals 0
|
|
|
|
.line 37
|
|
iget-object p0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->k:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/user/message/old/BaseMsgOldFragment;)Landroid/widget/LinearLayout;
|
|
.locals 0
|
|
|
|
.line 37
|
|
iget-object p0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->i:Landroid/widget/LinearLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private d()V
|
|
.locals 2
|
|
|
|
.line 82
|
|
iget-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->e:Landroid/widget/ListView;
|
|
|
|
new-instance v1, Lcom/moji/user/message/old/BaseMsgOldFragment$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/old/BaseMsgOldFragment$1;-><init>(Lcom/moji/user/message/old/BaseMsgOldFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V
|
|
|
|
.line 101
|
|
iget-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->k:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
|
|
new-instance v1, Lcom/moji/user/message/old/BaseMsgOldFragment$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/old/BaseMsgOldFragment$2;-><init>(Lcom/moji/user/message/old/BaseMsgOldFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setOnRefreshListener(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnRefreshListener;)V
|
|
|
|
.line 108
|
|
iget-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->m:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
new-instance v1, Lcom/moji/user/message/old/BaseMsgOldFragment$3;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/user/message/old/BaseMsgOldFragment$3;-><init>(Lcom/moji/user/message/old/BaseMsgOldFragment;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setOnRetryClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/user/message/old/BaseMsgOldFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
.locals 0
|
|
|
|
.line 37
|
|
iget-object p0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->m:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(I)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 176
|
|
invoke-virtual {p0}, Lcom/moji/user/message/old/BaseMsgOldFragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method protected a()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract a(Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;)V
|
|
.end method
|
|
|
|
.method protected a(Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 119
|
|
iput-boolean v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->l:Z
|
|
|
|
.line 120
|
|
iget-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->d:Ljava/lang/String;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 121
|
|
iget-object v0, p0, Lcom/moji/user/message/old/BaseMsgOldFragment;->m:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->F()V
|
|
|
|
.line 123
|
|
:cond_0
|
|
new-instance v0, Lcom/moji/http/ugc/MsgDetailRequest;
|
|
|
|
invoke-direct {v0, p1, p2}, Lcom/moji/http/ugc/MsgDetailRequest;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
new-instance p1, Lcom/moji/user/message/old/BaseMsgOldFragment$4;
|
|
|
|
invoke-direct {p1, p0}, Lcom/moji/user/message/old/BaseMsgOldFragment$4;-><init>(Lcom/moji/user/message/old/BaseMsgOldFragment;)V
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/http/ugc/MsgDetailRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b(I)I
|
|
.locals 1
|
|
|
|
.line 182
|
|
invoke-virtual {p0}, Lcom/moji/user/message/old/BaseMsgOldFragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getColor(I)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public abstract b()V
|
|
.end method
|
|
|
|
.method protected c()F
|
|
.locals 1
|
|
|
|
.line 179
|
|
invoke-virtual {p0}, Lcom/moji/user/message/old/BaseMsgOldFragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected c(I)Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
|
|
.line 185
|
|
invoke-virtual {p0}, Lcom/moji/user/message/old/BaseMsgOldFragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
|
|
.locals 1
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 54
|
|
sget p3, Lcom/moji/user/R$layout;->fragment_msg_detail:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
.line 55
|
|
invoke-direct {p0, p1}, Lcom/moji/user/message/old/BaseMsgOldFragment;->a(Landroid/view/View;)V
|
|
|
|
.line 56
|
|
invoke-direct {p0}, Lcom/moji/user/message/old/BaseMsgOldFragment;->d()V
|
|
|
|
.line 57
|
|
invoke-virtual {p0}, Lcom/moji/user/message/old/BaseMsgOldFragment;->b()V
|
|
|
|
return-object p1
|
|
.end method
|