apkfuckery/com.discord/smali/com/discord/views/channelsidebar/PrivateChannelSideBarActionsView.smali
2020-11-16 22:05:17 +00:00

363 lines
12 KiB
Smali

.class public final Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;
.super Landroid/widget/LinearLayout;
.source "PrivateChannelSideBarActionsView.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
.locals 8
const/4 v0, 0x4
new-array v0, v0, [Lkotlin/reflect/KProperty;
new-instance v1, Ly/m/c/s;
const-class v2, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;
const-string v3, "callButton"
const-string v4, "getCallButton()Lcom/google/android/material/button/MaterialButton;"
const/4 v5, 0x0
invoke-direct {v1, v2, v3, v4, v5}, Ly/m/c/s;-><init>(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
sget-object v2, Ly/m/c/u;->a:Ly/m/c/v;
invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
aput-object v1, v0, v5
const/4 v1, 0x1
new-instance v3, Ly/m/c/s;
const-class v4, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;
const-string/jumbo v6, "videoButton"
const-string v7, "getVideoButton()Lcom/google/android/material/button/MaterialButton;"
invoke-direct {v3, v4, v6, v7, v5}, Ly/m/c/s;-><init>(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
aput-object v3, v0, v1
const/4 v1, 0x2
new-instance v3, Ly/m/c/s;
const-class v4, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;
const-string v6, "notificationsButtons"
const-string v7, "getNotificationsButtons()Lcom/google/android/material/button/MaterialButton;"
invoke-direct {v3, v4, v6, v7, v5}, Ly/m/c/s;-><init>(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
aput-object v3, v0, v1
const/4 v1, 0x3
new-instance v3, Ly/m/c/s;
const-class v4, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;
const-string v6, "searchButton"
const-string v7, "getSearchButton()Lcom/google/android/material/button/MaterialButton;"
invoke-direct {v3, v4, v6, v7, v5}, Ly/m/c/s;-><init>(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
aput-object v3, v0, v1
sput-object v0, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->h:[Lkotlin/reflect/KProperty;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 6
const-string v0, "context"
invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const p2, 0x7f0a07e4
invoke-static {p0, p2}, Lz/a/g0;->f(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p2
iput-object p2, p0, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->d:Lkotlin/properties/ReadOnlyProperty;
const p2, 0x7f0a07e7
invoke-static {p0, p2}, Lz/a/g0;->f(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p2
iput-object p2, p0, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->e:Lkotlin/properties/ReadOnlyProperty;
const p2, 0x7f0a07e5
invoke-static {p0, p2}, Lz/a/g0;->f(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p2
iput-object p2, p0, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->f:Lkotlin/properties/ReadOnlyProperty;
const p2, 0x7f0a07e6
invoke-static {p0, p2}, Lz/a/g0;->f(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p2
iput-object p2, p0, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->g:Lkotlin/properties/ReadOnlyProperty;
const p2, 0x7f0d00da
invoke-static {p1, p2, p0}, Landroid/widget/LinearLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
sget-object v1, Lf/a/n/g0/g;->d:Lf/a/n/g0/g;
sget-object v2, Lf/a/n/g0/h;->d:Lf/a/n/g0/h;
sget-object v3, Lf/a/n/g0/i;->d:Lf/a/n/g0/i;
sget-object v4, Lf/a/n/g0/j;->d:Lf/a/n/g0/j;
const/4 v5, 0x0
move-object v0, p0
invoke-virtual/range {v0 .. v5}, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->a(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Z)V
return-void
.end method
.method private final getCallButton()Lcom/google/android/material/button/MaterialButton;
.locals 3
iget-object v0, p0, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->d:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->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 getNotificationsButtons()Lcom/google/android/material/button/MaterialButton;
.locals 3
iget-object v0, p0, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->f:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->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 getSearchButton()Lcom/google/android/material/button/MaterialButton;
.locals 3
iget-object v0, p0, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->g:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->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
.method private final getVideoButton()Lcom/google/android/material/button/MaterialButton;
.locals 3
iget-object v0, p0, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->e:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->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
# virtual methods
.method public final a(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Z)V
.locals 3
.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;",
">;Z)V"
}
.end annotation
const-string v0, "onCallClicked"
invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "onVideoClicked"
invoke-static {p2, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "onNotificationsClicked"
invoke-static {p3, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "onSearchClicked"
invoke-static {p4, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x2
const/4 v1, 0x0
const/4 v2, 0x0
if-eqz p5, :cond_0
const p5, 0x7f04030a
invoke-static {p0, p5, v1, v0, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
move-result p5
goto :goto_0
:cond_0
const p5, 0x7f04030b
invoke-static {p0, p5, v1, v0, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
move-result p5
:goto_0
invoke-direct {p0}, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->getCallButton()Lcom/google/android/material/button/MaterialButton;
move-result-object v0
new-instance v1, Lf/a/n/g0/k;
invoke-direct {v1, p1}, Lf/a/n/g0/k;-><init>(Lkotlin/jvm/functions/Function1;)V
invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->getVideoButton()Lcom/google/android/material/button/MaterialButton;
move-result-object p1
new-instance v0, Lf/a/n/g0/k;
invoke-direct {v0, p2}, Lf/a/n/g0/k;-><init>(Lkotlin/jvm/functions/Function1;)V
invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->getNotificationsButtons()Lcom/google/android/material/button/MaterialButton;
move-result-object p1
invoke-virtual {p1}, Landroid/widget/Button;->getContext()Landroid/content/Context;
move-result-object p2
invoke-static {p2, p5}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object p2
invoke-static {p1, v2, p2, v2, v2}, 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
new-instance p2, Lf/a/n/g0/l;
invoke-direct {p2, p3}, Lf/a/n/g0/l;-><init>(Lkotlin/jvm/functions/Function1;)V
invoke-virtual {p1, p2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/discord/views/channelsidebar/PrivateChannelSideBarActionsView;->getSearchButton()Lcom/google/android/material/button/MaterialButton;
move-result-object p1
new-instance p2, Lf/a/n/g0/k;
invoke-direct {p2, p4}, Lf/a/n/g0/k;-><init>(Lkotlin/jvm/functions/Function1;)V
invoke-virtual {p1, p2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
return-void
.end method