339 lines
8.3 KiB
Smali
339 lines
8.3 KiB
Smali
.class public abstract Lcom/moji/newliveview/base/AbsExceptionAdapter;
|
|
.super Lcom/moji/newliveview/base/AbsRecyclerAdapter;
|
|
.source "AbsExceptionAdapter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/newliveview/base/AbsExceptionAdapter$ExceptionViewHolder;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private d:I
|
|
|
|
.field private e:I
|
|
.annotation build Landroid/support/annotation/DrawableRes;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private f:Ljava/lang/String;
|
|
|
|
.field private g:Ljava/lang/String;
|
|
|
|
.field private h:Ljava/lang/String;
|
|
|
|
.field private i:Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 34
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/base/AbsRecyclerAdapter;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 24
|
|
iput p1, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/base/AbsExceptionAdapter;)I
|
|
.locals 0
|
|
|
|
.line 19
|
|
iget p0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->e:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/newliveview/base/AbsExceptionAdapter;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 19
|
|
iget-object p0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->f:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/newliveview/base/AbsExceptionAdapter;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 19
|
|
iget-object p0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->g:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/newliveview/base/AbsExceptionAdapter;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 19
|
|
iget-object p0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->h:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/newliveview/base/AbsExceptionAdapter;)Landroid/view/View$OnClickListener;
|
|
.locals 0
|
|
|
|
.line 19
|
|
iget-object p0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->i:Landroid/view/View$OnClickListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private e()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 154
|
|
iput v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->e:I
|
|
|
|
const-string v0, ""
|
|
|
|
.line 155
|
|
iput-object v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->f:Ljava/lang/String;
|
|
|
|
const-string v0, ""
|
|
|
|
.line 156
|
|
iput-object v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->g:Ljava/lang/String;
|
|
|
|
const-string v0, ""
|
|
|
|
.line 157
|
|
iput-object v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->h:Ljava/lang/String;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 158
|
|
iput-object v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->i:Landroid/view/View$OnClickListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()I
|
|
.locals 2
|
|
|
|
.line 47
|
|
iget v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 50
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public a(I)I
|
|
.locals 2
|
|
|
|
.line 56
|
|
iget v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 57
|
|
invoke-super {p0, p1}, Lcom/moji/newliveview/base/AbsRecyclerAdapter;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
.line 59
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/base/AbsExceptionAdapter;->f(I)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public a(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
|
|
.locals 3
|
|
|
|
.line 65
|
|
iget v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 66
|
|
new-instance p2, Lcom/moji/newliveview/base/AbsExceptionAdapter$ExceptionViewHolder;
|
|
|
|
iget-object v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->b:Landroid/view/LayoutInflater;
|
|
|
|
sget v1, Lcom/moji/newliveview/R$layout;->view_exception_tip:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p0, p1}, Lcom/moji/newliveview/base/AbsExceptionAdapter$ExceptionViewHolder;-><init>(Lcom/moji/newliveview/base/AbsExceptionAdapter;Landroid/view/View;)V
|
|
|
|
return-object p2
|
|
|
|
.line 68
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/newliveview/base/AbsExceptionAdapter;->c(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 137
|
|
iput p1, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->e:I
|
|
|
|
.line 138
|
|
iput-object p2, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->f:Ljava/lang/String;
|
|
|
|
.line 139
|
|
iput-object p3, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->g:Ljava/lang/String;
|
|
|
|
.line 140
|
|
iput-object p4, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->h:Ljava/lang/String;
|
|
|
|
.line 141
|
|
iput-object p5, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->i:Landroid/view/View$OnClickListener;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 142
|
|
iput p1, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d:I
|
|
|
|
.line 143
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/base/AbsExceptionAdapter;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
|
|
.locals 2
|
|
|
|
.line 75
|
|
iget v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 76
|
|
check-cast p1, Lcom/moji/newliveview/base/AbsExceptionAdapter$ExceptionViewHolder;
|
|
|
|
.line 77
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/base/AbsExceptionAdapter$ExceptionViewHolder;->y()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 79
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/newliveview/base/AbsExceptionAdapter;->c(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected abstract c(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
|
|
.end method
|
|
|
|
.method public c(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V
|
|
.locals 2
|
|
|
|
.line 163
|
|
invoke-super {p0, p1}, Lcom/moji/newliveview/base/AbsRecyclerAdapter;->c(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V
|
|
|
|
.line 164
|
|
iget v0, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 166
|
|
iget-object p1, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 168
|
|
invoke-virtual {p1, v1}, Landroid/support/v7/widget/StaggeredGridLayoutManager$LayoutParams;->a(Z)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 171
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/base/AbsExceptionAdapter;->e(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected abstract c(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
|
|
.end method
|
|
|
|
.method protected abstract d()I
|
|
.end method
|
|
|
|
.method protected e(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected abstract f(I)I
|
|
.end method
|
|
|
|
.method public g(I)V
|
|
.locals 0
|
|
|
|
.line 147
|
|
iput p1, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d:I
|
|
|
|
.line 148
|
|
iget p1, p0, Lcom/moji/newliveview/base/AbsExceptionAdapter;->d:I
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 149
|
|
invoke-direct {p0}, Lcom/moji/newliveview/base/AbsExceptionAdapter;->e()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|