apkfuckery/com.discord/smali/com/discord/views/channelsidebar/GuildChannelSideBarActionsV...

434 lines
13 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;
.super Landroid/widget/LinearLayout;
.source "GuildChannelSideBarActionsView.kt"
# static fields
.field public static final synthetic h:[Lkotlin/reflect/KProperty;
# instance fields
.field public final d:Lkotlin/properties/ReadOnlyProperty;
.field public final e:Lkotlin/properties/ReadOnlyProperty;
.field public final f:Lkotlin/properties/ReadOnlyProperty;
.field public final g:Lkotlin/properties/ReadOnlyProperty;
# direct methods
.method public static constructor <clinit>()V
2020-07-08 16:44:49 +00:00
.locals 5
2020-05-17 12:40:10 +00:00
const/4 v0, 0x4
new-array v0, v0, [Lkotlin/reflect/KProperty;
2020-07-25 00:57:58 +00:00
new-instance v1, Lj0/n/c/q;
2020-05-17 12:40:10 +00:00
const-class v2, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;
2020-07-25 00:57:58 +00:00
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
2020-05-17 12:40:10 +00:00
move-result-object v2
const-string v3, "searchButton"
const-string v4, "getSearchButton()Lcom/google/android/material/button/MaterialButton;"
2020-07-25 00:57:58 +00:00
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
2020-05-17 12:40:10 +00:00
const/4 v2, 0x0
aput-object v1, v0, v2
2020-07-25 00:57:58 +00:00
new-instance v1, Lj0/n/c/q;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-class v2, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v3, "pinsButton"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v4, "getPinsButton()Lcom/google/android/material/button/MaterialButton;"
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v2, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aput-object v1, v0, v2
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
new-instance v1, Lj0/n/c/q;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-class v2, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v3, "notificationsButtons"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v4, "getNotificationsButtons()Lcom/google/android/material/button/MaterialButton;"
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v2, 0x2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aput-object v1, v0, v2
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
new-instance v1, Lj0/n/c/q;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-class v2, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v3, "settingsButton"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v4, "getSettingsButton()Lcom/google/android/material/button/MaterialButton;"
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v2, 0x3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aput-object v1, v0, v2
2020-05-17 12:40:10 +00:00
sput-object v0, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->h:[Lkotlin/reflect/KProperty;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
2020-07-08 16:44:49 +00:00
.locals 7
2020-05-17 12:40:10 +00:00
if-eqz p1, :cond_0
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
2020-07-23 01:06:17 +00:00
const p2, 0x7f0a01b8
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-static {p0, p2}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2020-05-17 12:40:10 +00:00
move-result-object p2
iput-object p2, p0, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->d:Lkotlin/properties/ReadOnlyProperty;
2020-07-23 01:06:17 +00:00
const p2, 0x7f0a01b7
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-static {p0, p2}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2020-05-17 12:40:10 +00:00
move-result-object p2
iput-object p2, p0, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->e:Lkotlin/properties/ReadOnlyProperty;
2020-07-23 01:06:17 +00:00
const p2, 0x7f0a01b6
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-static {p0, p2}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2020-05-17 12:40:10 +00:00
move-result-object p2
iput-object p2, p0, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->f:Lkotlin/properties/ReadOnlyProperty;
2020-07-23 01:06:17 +00:00
const p2, 0x7f0a01b9
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-static {p0, p2}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2020-05-17 12:40:10 +00:00
move-result-object p2
iput-object p2, p0, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->g:Lkotlin/properties/ReadOnlyProperty;
2020-07-23 01:06:17 +00:00
const p2, 0x7f0d005e
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p1, p2, p0}, Landroid/widget/LinearLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sget-object v1, Lf/a/n/k0/a;->d:Lf/a/n/k0/a;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sget-object v2, Lf/a/n/k0/b;->d:Lf/a/n/k0/b;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sget-object v3, Lf/a/n/k0/c;->d:Lf/a/n/k0/c;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sget-object v4, Lf/a/n/k0/d;->d:Lf/a/n/k0/d;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v5, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v6, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v0, p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {v0 .. v6}, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->a(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ZZ)V
2020-05-17 12:40:10 +00:00
return-void
:cond_0
const-string p1, "context"
2020-07-25 00:57:58 +00:00
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
throw p1
.end method
.method private final getNotificationsButtons()Lcom/google/android/material/button/MaterialButton;
.locals 3
iget-object v0, p0, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->f:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->h:[Lkotlin/reflect/KProperty;
const/4 v2, 0x2
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, Lcom/google/android/material/button/MaterialButton;
return-object v0
.end method
.method private final getPinsButton()Lcom/google/android/material/button/MaterialButton;
.locals 3
iget-object v0, p0, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->e:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->h:[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, Lcom/google/android/material/button/MaterialButton;
return-object v0
.end method
.method private final getSearchButton()Lcom/google/android/material/button/MaterialButton;
.locals 3
iget-object v0, p0, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->d:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->h:[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, Lcom/google/android/material/button/MaterialButton;
return-object v0
.end method
.method private final getSettingsButton()Lcom/google/android/material/button/MaterialButton;
.locals 3
iget-object v0, p0, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->g:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->h:[Lkotlin/reflect/KProperty;
const/4 v2, 0x3
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, Lcom/google/android/material/button/MaterialButton;
return-object v0
.end method
# virtual methods
.method public final a(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ZZ)V
2020-08-03 21:00:21 +00:00
.locals 3
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function1<",
"-",
"Landroid/view/View;",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function1<",
"-",
"Landroid/view/View;",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function1<",
"-",
"Landroid/view/View;",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function1<",
"-",
"Landroid/view/View;",
"Lkotlin/Unit;",
">;ZZ)V"
}
.end annotation
const/4 v0, 0x0
2020-08-03 21:00:21 +00:00
if-eqz p1, :cond_5
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
if-eqz p2, :cond_4
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
if-eqz p3, :cond_3
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
if-eqz p4, :cond_2
2020-05-17 12:40:10 +00:00
const/4 v1, 0x2
const/4 v2, 0x0
if-eqz p5, :cond_0
2020-08-03 21:00:21 +00:00
const p5, 0x7f0402cc
2020-05-17 12:40:10 +00:00
invoke-static {p0, p5, v2, v1, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
move-result p5
goto :goto_0
:cond_0
2020-08-03 21:00:21 +00:00
const p5, 0x7f0402cb
2020-05-17 12:40:10 +00:00
invoke-static {p0, p5, v2, v1, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
move-result p5
:goto_0
if-eqz p6, :cond_1
2020-08-03 21:00:21 +00:00
const p6, 0x7f0402c9
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
invoke-static {p0, p6, v2, v1, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
move-result p6
2020-05-17 12:40:10 +00:00
goto :goto_1
:cond_1
2020-08-03 21:00:21 +00:00
const p6, 0x7f0402ca
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
invoke-static {p0, p6, v2, v1, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
move-result p6
2020-05-17 12:40:10 +00:00
:goto_1
invoke-direct {p0}, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->getSearchButton()Lcom/google/android/material/button/MaterialButton;
2020-08-03 21:00:21 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
new-instance v2, Lf/a/n/k0/e;
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
invoke-direct {v2, p1}, Lf/a/n/k0/e;-><init>(Lkotlin/jvm/functions/Function1;)V
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->getSettingsButton()Lcom/google/android/material/button/MaterialButton;
move-result-object p1
2020-08-03 21:00:21 +00:00
new-instance v1, Lf/a/n/k0/e;
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
invoke-direct {v1, p4}, Lf/a/n/k0/e;-><init>(Lkotlin/jvm/functions/Function1;)V
2020-05-17 12:40:10 +00:00
2020-08-03 21:00:21 +00:00
invoke-virtual {p1, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->getPinsButton()Lcom/google/android/material/button/MaterialButton;
move-result-object p1
invoke-virtual {p1}, Landroid/widget/Button;->getContext()Landroid/content/Context;
move-result-object p4
invoke-virtual {p4, p5}, Landroid/content/Context;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object p4
invoke-static {p1, v0, p4, v0, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat(Landroid/widget/TextView;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
2020-07-08 16:44:49 +00:00
new-instance p4, Lf/a/n/k0/f;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p4, p3}, Lf/a/n/k0/f;-><init>(Lkotlin/jvm/functions/Function1;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {p1, p4}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/discord/views/channelsidebar/GuildChannelSideBarActionsView;->getNotificationsButtons()Lcom/google/android/material/button/MaterialButton;
move-result-object p1
invoke-virtual {p1}, Landroid/widget/Button;->getContext()Landroid/content/Context;
move-result-object p3
2020-08-03 21:00:21 +00:00
invoke-virtual {p3, p6}, Landroid/content/Context;->getDrawable(I)Landroid/graphics/drawable/Drawable;
2020-05-17 12:40:10 +00:00
move-result-object p3
invoke-static {p1, v0, p3, v0, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat(Landroid/widget/TextView;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
2020-07-08 16:44:49 +00:00
new-instance p3, Lf/a/n/k0/f;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p3, p2}, Lf/a/n/k0/f;-><init>(Lkotlin/jvm/functions/Function1;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {p1, p3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
2020-08-01 01:14:42 +00:00
return-void
2020-08-03 21:00:21 +00:00
:cond_2
2020-05-17 12:40:10 +00:00
const-string p1, "onSettingsClicked"
2020-07-25 00:57:58 +00:00
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v0
2020-08-03 21:00:21 +00:00
:cond_3
2020-05-17 12:40:10 +00:00
const-string p1, "onPinsClicked"
2020-07-25 00:57:58 +00:00
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v0
2020-08-03 21:00:21 +00:00
:cond_4
2020-05-17 12:40:10 +00:00
const-string p1, "onNotificationsClicked"
2020-07-25 00:57:58 +00:00
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v0
2020-08-03 21:00:21 +00:00
:cond_5
2020-05-17 12:40:10 +00:00
const-string p1, "onSearchClicked"
2020-07-25 00:57:58 +00:00
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v0
.end method