125 lines
3.6 KiB
Smali
125 lines
3.6 KiB
Smali
.class public final Lcom/discord/widgets/user/profile/UserProfileHeaderView$BadgeViewHolder;
|
|
.super Lcom/discord/utilities/views/SimpleRecyclerAdapter$ViewHolder;
|
|
.source "UserProfileHeaderView.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/user/profile/UserProfileHeaderView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x11
|
|
name = "BadgeViewHolder"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/discord/utilities/views/SimpleRecyclerAdapter$ViewHolder<",
|
|
"Lcom/discord/widgets/user/Badge;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final badgeImage:Landroid/widget/ImageView;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/user/profile/UserProfileHeaderView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/user/profile/UserProfileHeaderView;Landroid/view/View;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/profile/UserProfileHeaderView$BadgeViewHolder;->this$0:Lcom/discord/widgets/user/profile/UserProfileHeaderView;
|
|
|
|
invoke-direct {p0, p2}, Lcom/discord/utilities/views/SimpleRecyclerAdapter$ViewHolder;-><init>(Landroid/view/View;)V
|
|
|
|
const p1, 0x7f0a0944
|
|
|
|
invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/profile/UserProfileHeaderView$BadgeViewHolder;->badgeImage:Landroid/widget/ImageView;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance p1, Ly/l;
|
|
|
|
const-string p2, "null cannot be cast to non-null type android.widget.ImageView"
|
|
|
|
invoke-direct {p1, p2}, Ly/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
const-string p1, "itemView"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bind(Lcom/discord/widgets/user/Badge;)V
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/profile/UserProfileHeaderView$BadgeViewHolder;->badgeImage:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/user/Badge;->getIcon()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/profile/UserProfileHeaderView$BadgeViewHolder;->badgeImage:Landroid/widget/ImageView;
|
|
|
|
new-instance v1, Lcom/discord/widgets/user/profile/UserProfileHeaderView$BadgeViewHolder$bind$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/user/profile/UserProfileHeaderView$BadgeViewHolder$bind$1;-><init>(Lcom/discord/widgets/user/profile/UserProfileHeaderView$BadgeViewHolder;Lcom/discord/widgets/user/Badge;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "data"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public bridge synthetic bind(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/widgets/user/Badge;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/user/profile/UserProfileHeaderView$BadgeViewHolder;->bind(Lcom/discord/widgets/user/Badge;)V
|
|
|
|
return-void
|
|
.end method
|