292 lines
7.3 KiB
Smali
292 lines
7.3 KiB
Smali
|
.class public final Lcom/discord/views/UserListItemView;
|
||
|
.super Landroid/widget/RelativeLayout;
|
||
|
.source "UserListItemView.kt"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final d:Landroid/widget/ImageView;
|
||
|
|
||
|
.field public final e:Landroid/widget/TextView;
|
||
|
|
||
|
.field public final f:Landroid/widget/TextView;
|
||
|
|
||
|
.field public final g:Lcom/discord/views/StatusView;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroid/content/Context;)V
|
||
|
.locals 6
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x6
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
move-object v1, p1
|
||
|
|
||
|
invoke-direct/range {v0 .. v5}, Lcom/discord/views/UserListItemView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||
|
.locals 6
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x4
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
move-object v1, p1
|
||
|
|
||
|
move-object v2, p2
|
||
|
|
||
|
invoke-direct/range {v0 .. v5}, Lcom/discord/views/UserListItemView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||
|
.locals 0
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||
|
|
||
|
const/4 p2, 0x1
|
||
|
|
||
|
invoke-virtual {p0, p2}, Landroid/widget/RelativeLayout;->setClickable(Z)V
|
||
|
|
||
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const p3, 0x7f0d0126
|
||
|
|
||
|
invoke-virtual {p1, p3, p0, p2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const p2, 0x7f0a0951
|
||
|
|
||
|
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const-string p3, "content.findViewById(R.id.user_list_item_avatar)"
|
||
|
|
||
|
invoke-static {p2, p3}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p2, Landroid/widget/ImageView;
|
||
|
|
||
|
iput-object p2, p0, Lcom/discord/views/UserListItemView;->d:Landroid/widget/ImageView;
|
||
|
|
||
|
const p2, 0x7f0a0952
|
||
|
|
||
|
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const-string p3, "content.findViewById(R.id.user_list_item_name)"
|
||
|
|
||
|
invoke-static {p2, p3}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p2, Landroid/widget/TextView;
|
||
|
|
||
|
iput-object p2, p0, Lcom/discord/views/UserListItemView;->e:Landroid/widget/TextView;
|
||
|
|
||
|
const p2, 0x7f0a0953
|
||
|
|
||
|
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const-string p3, "content.findViewById(R.i\u2026list_item_name_secondary)"
|
||
|
|
||
|
invoke-static {p2, p3}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p2, Landroid/widget/TextView;
|
||
|
|
||
|
iput-object p2, p0, Lcom/discord/views/UserListItemView;->f:Landroid/widget/TextView;
|
||
|
|
||
|
const p2, 0x7f0a0954
|
||
|
|
||
|
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string p2, "content.findViewById(R.id.user_list_item_status)"
|
||
|
|
||
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p1, Lcom/discord/views/StatusView;
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/views/UserListItemView;->g:Lcom/discord/views/StatusView;
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
const-string p1, "context"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
.locals 0
|
||
|
|
||
|
and-int/lit8 p5, p4, 0x2
|
||
|
|
||
|
if-eqz p5, :cond_0
|
||
|
|
||
|
const/4 p2, 0x0
|
||
|
|
||
|
:cond_0
|
||
|
and-int/lit8 p4, p4, 0x4
|
||
|
|
||
|
if-eqz p4, :cond_1
|
||
|
|
||
|
const/4 p3, 0x0
|
||
|
|
||
|
:cond_1
|
||
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/views/UserListItemView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-virtual {p0, p1, p2, p3, v0}, Lcom/discord/views/UserListItemView;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/discord/models/domain/ModelPresence;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/discord/models/domain/ModelPresence;)V
|
||
|
.locals 9
|
||
|
|
||
|
if-eqz p1, :cond_5
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-eqz p3, :cond_1
|
||
|
|
||
|
invoke-interface {p3}, Ljava/lang/CharSequence;->length()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-nez v2, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
:goto_1
|
||
|
if-eqz v2, :cond_2
|
||
|
|
||
|
iget-object p3, p0, Lcom/discord/views/UserListItemView;->e:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {p3, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/views/UserListItemView;->f:Landroid/widget/TextView;
|
||
|
|
||
|
const-string p3, ""
|
||
|
|
||
|
invoke-virtual {p1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
iget-object v2, p0, Lcom/discord/views/UserListItemView;->e:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {v2, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
iget-object p3, p0, Lcom/discord/views/UserListItemView;->f:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {p3, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
:goto_2
|
||
|
iget-object v2, p0, Lcom/discord/views/UserListItemView;->d:Landroid/widget/ImageView;
|
||
|
|
||
|
const v4, 0x7f07005c
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/16 v7, 0x18
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
move-object v3, p2
|
||
|
|
||
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/icon/IconUtils;->setIcon$default(Landroid/widget/ImageView;Ljava/lang/String;ILkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/views/UserListItemView;->g:Lcom/discord/views/StatusView;
|
||
|
|
||
|
invoke-virtual {p1, p4}, Lcom/discord/views/StatusView;->setPresence(Lcom/discord/models/domain/ModelPresence;)V
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/views/UserListItemView;->g:Lcom/discord/views/StatusView;
|
||
|
|
||
|
if-eqz p4, :cond_3
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_4
|
||
|
const/16 v1, 0x8
|
||
|
|
||
|
:goto_4
|
||
|
invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_5
|
||
|
const-string p1, "userNameWithDiscriminator"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public final getUserName()Landroid/widget/TextView;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/views/UserListItemView;->e:Landroid/widget/TextView;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|