342 lines
11 KiB
Smali
342 lines
11 KiB
Smali
.class public final Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;
|
|
.super Lcom/discord/widgets/friends/WidgetFriendsListAdapter$Item;
|
|
.source "WidgetFriendsListAdapter.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "ItemPendingHeader"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
# instance fields
|
|
.field public final expandButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final textView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const-class v0, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v1, v1, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v2, Lz/u/b/u;
|
|
|
|
invoke-static {v0}, Lz/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Lz/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "textView"
|
|
|
|
const-string v5, "getTextView()Landroid/widget/TextView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lz/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lz/u/b/x;->a:Lz/u/b/y;
|
|
|
|
invoke-virtual {v3, v2}, Lz/u/b/y;->property1(Lz/u/b/t;)Lz/y/d;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-instance v3, Lz/u/b/u;
|
|
|
|
invoke-static {v0}, Lz/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Lz/y/b;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v4, "expandButton"
|
|
|
|
const-string v5, "getExpandButton()Landroidx/appcompat/widget/AppCompatTextView;"
|
|
|
|
invoke-direct {v3, v0, v4, v5}, Lz/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lz/u/b/x;->a:Lz/u/b/y;
|
|
|
|
invoke-virtual {v0, v3}, Lz/u/b/y;->property1(Lz/u/b/t;)Lz/y/d;
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
sput-object v1, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/discord/widgets/friends/WidgetFriendsListAdapter;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const v0, 0x7f0d019a
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$Item;-><init>(ILcom/discord/widgets/friends/WidgetFriendsListAdapter;)V
|
|
|
|
const p1, 0x7f0a0373
|
|
|
|
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->textView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p1, 0x7f0a0372
|
|
|
|
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->expandButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "adapter"
|
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final synthetic access$getAdapter$p(Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;)Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->adapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
|
|
|
check-cast p0, Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final getExpandButton()Landroidx/appcompat/widget/AppCompatTextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->expandButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getTextView()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->textView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onConfigure(ILcom/discord/widgets/friends/FriendsListViewModel$Item;)V
|
|
.locals 7
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
invoke-super {p0, p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->onConfigure(ILjava/lang/Object;)V
|
|
|
|
check-cast p2, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingHeader;
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->getTextView()Landroid/widget/TextView;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->adapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
|
|
|
check-cast v0, Lcom/discord/widgets/friends/WidgetFriendsListAdapter;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->getRecycler()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingHeader;->getTitleStringResId()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingHeader;->getCount()I
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingHeader;->getShowExpandButton()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->getExpandButton()Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingHeader;->isPendingSectionExpanded()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const p1, 0x7f12073c
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const p1, 0x7f12073b
|
|
|
|
:goto_0
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->getExpandButton()Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->getExpandButton()Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/friends/FriendsListViewModel$Item$PendingHeader;->isPendingSectionExpanded()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const p1, 0x7f08022c
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const p1, 0x7f08022b
|
|
|
|
:goto_1
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->getExpandButton()Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->getExpandButton()Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/16 v5, 0xb
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-static/range {v0 .. v6}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat$default(Landroid/widget/TextView;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;ILjava/lang/Object;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->getExpandButton()Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader$onConfigure$1;
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader$onConfigure$1;-><init>(Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
invoke-direct {p0}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->getExpandButton()Landroidx/appcompat/widget/AppCompatTextView;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 p2, 0x8
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:goto_2
|
|
return-void
|
|
|
|
:cond_3
|
|
const-string p1, "data"
|
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public bridge synthetic onConfigure(ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
check-cast p2, Lcom/discord/widgets/friends/FriendsListViewModel$Item;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/friends/WidgetFriendsListAdapter$ItemPendingHeader;->onConfigure(ILcom/discord/widgets/friends/FriendsListViewModel$Item;)V
|
|
|
|
return-void
|
|
.end method
|