apkfuckery/com.discord/smali/com/discord/views/ToolbarTitleLayout.smali

332 lines
9.1 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/views/ToolbarTitleLayout;
2020-04-17 17:35:24 +00:00
.super Lf/a/k/e$b;
2019-07-24 11:27:29 +00:00
.source "ToolbarTitleLayout.kt"
# static fields
2019-12-06 03:29:40 +00:00
.field public static final synthetic h:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final e:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
2019-12-06 03:29:40 +00:00
.field public final f:Lkotlin/properties/ReadOnlyProperty;
2019-08-30 20:04:20 +00:00
2019-12-06 03:29:40 +00:00
.field public final g:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-08-30 20:04:20 +00:00
.locals 6
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-array v0, v0, [Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
new-instance v1, Ly/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v2, Lcom/discord/views/ToolbarTitleLayout;
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-static {v2}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v3, "title"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v4, "getTitle()Landroid/widget/TextView;"
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-direct {v1, v2, v3, v4}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
sget-object v2, Ly/u/b/x;->a:Ly/u/b/y;
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v2, v1}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v1, v0, v2
const/4 v1, 0x1
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
new-instance v2, Ly/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/views/ToolbarTitleLayout;
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v4, "titleSubtext"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v5, "getTitleSubtext()Landroid/widget/TextView;"
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x2
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
new-instance v2, Ly/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/views/ToolbarTitleLayout;
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
const-string v4, "statusView"
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
const-string v5, "getStatusView()Lcom/discord/views/StatusView;"
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sput-object v0, Lcom/discord/views/ToolbarTitleLayout;->h:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
2019-12-06 03:29:40 +00:00
.locals 0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
invoke-direct {p0, p1}, Lf/a/k/e$b;-><init>(Landroid/content/Context;)V
2019-07-24 11:27:29 +00:00
2020-04-20 16:41:24 +00:00
const p1, 0x7f0a0906
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Lcom/discord/views/ToolbarTitleLayout;->e:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-04-20 16:41:24 +00:00
const p1, 0x7f0a0907
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Lcom/discord/views/ToolbarTitleLayout;->f:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-04-20 16:41:24 +00:00
const p1, 0x7f0a0905
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Lcom/discord/views/ToolbarTitleLayout;->g:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
return-void
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "context"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
2020-01-10 03:40:06 +00:00
.method private final getStatusView()Lcom/discord/views/StatusView;
2019-12-06 03:29:40 +00:00
.locals 3
iget-object v0, p0, Lcom/discord/views/ToolbarTitleLayout;->g:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/ToolbarTitleLayout;->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
2020-01-10 03:40:06 +00:00
check-cast v0, Lcom/discord/views/StatusView;
2019-12-06 03:29:40 +00:00
return-object v0
.end method
.method private final getTitle()Landroid/widget/TextView;
.locals 3
iget-object v0, p0, Lcom/discord/views/ToolbarTitleLayout;->e:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/ToolbarTitleLayout;->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, Landroid/widget/TextView;
return-object v0
2019-07-24 11:27:29 +00:00
.end method
.method private final getTitleSubtext()Landroid/widget/TextView;
.locals 3
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Lcom/discord/views/ToolbarTitleLayout;->f:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v1, Lcom/discord/views/ToolbarTitleLayout;->h:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
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, Landroid/widget/TextView;
return-object v0
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public a()Landroid/view/ViewGroup;
.locals 3
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
invoke-virtual {p0}, Lf/a/k/e$b;->getInflater()Landroid/view/LayoutInflater;
2019-07-24 11:27:29 +00:00
move-result-object v0
2020-04-17 17:35:24 +00:00
const v1, 0x7f0d0120
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
2019-07-24 11:27:29 +00:00
move-result-object v0
if-eqz v0, :cond_0
check-cast v0, Landroid/view/ViewGroup;
return-object v0
:cond_0
2020-04-17 19:35:49 +00:00
new-instance v0, Ly/l;
2019-07-24 11:27:29 +00:00
const-string v1, "null cannot be cast to non-null type android.view.ViewGroup"
2020-04-17 19:35:49 +00:00
invoke-direct {v0, v1}, Ly/l;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
throw v0
.end method
2019-12-06 03:29:40 +00:00
.method public final a(Lcom/discord/models/domain/ModelPresence;Z)V
2020-01-10 03:40:06 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
invoke-direct {p0}, Lcom/discord/views/ToolbarTitleLayout;->getStatusView()Lcom/discord/views/StatusView;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-01-10 03:40:06 +00:00
if-eqz p2, :cond_0
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
const/4 p2, 0x0
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
goto :goto_0
:cond_0
const/16 p2, 0x8
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
:goto_0
invoke-virtual {v0, p2}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
invoke-direct {p0}, Lcom/discord/views/ToolbarTitleLayout;->getStatusView()Lcom/discord/views/StatusView;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p2
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
invoke-virtual {p2, p1}, Lcom/discord/views/StatusView;->setPresence(Lcom/discord/models/domain/ModelPresence;)V
2019-12-06 03:29:40 +00:00
return-void
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final a(Ljava/lang/CharSequence;Ljava/lang/Integer;)V
2019-11-15 02:21:15 +00:00
.locals 3
2019-12-06 03:29:40 +00:00
.param p2 # Ljava/lang/Integer;
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
2019-11-10 14:21:47 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p0}, Lcom/discord/views/ToolbarTitleLayout;->getTitle()Landroid/widget/TextView;
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_0
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getResources()Landroid/content/res/Resources;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result p2
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v1
const-string v2, "context"
2020-04-17 19:35:49 +00:00
invoke-static {v1, v2}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {v1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v1
invoke-static {v0, p2, v1}, Landroidx/core/content/res/ResourcesCompat;->getDrawable(Landroid/content/res/Resources;ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
move-result-object p2
invoke-direct {p0}, Lcom/discord/views/ToolbarTitleLayout;->getTitle()Landroid/widget/TextView;
move-result-object v0
invoke-static {v0, p2, p1, p1, p1}, Landroidx/core/widget/TextViewCompat;->setCompoundDrawablesRelativeWithIntrinsicBounds(Landroid/widget/TextView;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
goto :goto_0
:cond_0
invoke-direct {p0}, Lcom/discord/views/ToolbarTitleLayout;->getTitle()Landroid/widget/TextView;
move-result-object p2
invoke-static {p2, p1, p1, p1, p1}, Landroidx/core/widget/TextViewCompat;->setCompoundDrawablesRelativeWithIntrinsicBounds(Landroid/widget/TextView;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
:goto_0
return-void
2019-07-24 11:27:29 +00:00
.end method
2019-11-15 02:21:15 +00:00
.method public final setSubtitle(Ljava/lang/CharSequence;)V
2019-07-24 11:27:29 +00:00
.locals 1
2019-11-15 02:21:15 +00:00
invoke-direct {p0}, Lcom/discord/views/ToolbarTitleLayout;->getTitleSubtext()Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-15 02:21:15 +00:00
invoke-static {v0, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
2019-07-24 11:27:29 +00:00
return-void
.end method