2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/discord/widgets/channels/WidgetChannelTopic;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetChannelTopic.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2020-03-03 02:12:30 +00:00
|
|
|
Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;
|
2019-07-24 11:27:29 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-03-09 23:19:51 +00:00
|
|
|
.field public final channelName$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final channelTopicTitle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
.field public viewModel:Lcom/discord/widgets/channels/WidgetChannelTopicViewModel;
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static constructor <clinit>()V
|
2020-03-09 23:19:51 +00:00
|
|
|
.locals 6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const/4 v0, 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v1, Lw/u/b/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/channels/WidgetChannelTopic;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "channelTopicTitle"
|
|
|
|
|
|
|
|
const-string v4, "getChannelTopicTitle()Landroid/widget/TextView;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v2, Lw/u/b/w;->a:Lw/u/b/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v2, v1}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
new-instance v2, Lw/u/b/u;
|
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/channels/WidgetChannelTopic;
|
|
|
|
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "channelName"
|
|
|
|
|
|
|
|
const-string v5, "getChannelName()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
sput-object v0, Lcom/discord/widgets/channels/WidgetChannelTopic;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2020-03-10 23:21:53 +00:00
|
|
|
const v0, 0x7f0a0199
|
2020-03-07 02:17:34 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-03-09 21:22:31 +00:00
|
|
|
iput-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelTopic;->channelTopicTitle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-10 23:21:53 +00:00
|
|
|
const v0, 0x7f0a0198
|
2020-03-09 23:19:51 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelTopic;->channelName$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/channels/WidgetChannelTopic;Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/channels/WidgetChannelTopic;->configureUI(Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
.method private final configureUI(Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState;)V
|
|
|
|
.locals 20
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
move-object/from16 v0, p1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/WidgetChannelTopic;->getChannelTopicTitle()Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
move-result-object v1
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
move-result-object v3
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
sget-object v1, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Uninitialized;->INSTANCE:Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Uninitialized;
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
move-result v1
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/16 v9, 0xf
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
move-object v4, v0
|
|
|
|
|
|
|
|
invoke-direct/range {v4 .. v10}, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;-><init>(ILjava/lang/String;Ljava/lang/CharSequence;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2020-03-03 02:12:30 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
:goto_0
|
2020-03-03 02:12:30 +00:00
|
|
|
const/16 v19, 0x0
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
goto/16 :goto_3
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v1, v0, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$DefaultTopic;
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
new-instance v1, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
check-cast v0, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$DefaultTopic;
|
2020-03-03 02:12:30 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$DefaultTopic;->getChannelName()Ljava/lang/String;
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$DefaultTopic;->getChannelIconType()Lcom/discord/utilities/channel/GuildChannelIconType;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/channel/GuildChannelIconUtilsKt;->mapGuildChannelTypeToIcon(Lcom/discord/utilities/channel/GuildChannelIconType;)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-03-12 04:18:24 +00:00
|
|
|
const v4, 0x7f1203a3
|
2020-03-09 23:19:51 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-direct {v1, v0, v2, v3, v15}, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;-><init>(ILjava/lang/String;Ljava/lang/CharSequence;I)V
|
|
|
|
|
|
|
|
move-object v0, v1
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-03-03 02:12:30 +00:00
|
|
|
instance-of v1, v0, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
if-eqz v1, :cond_7
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/utilities/textprocessing/MessageRenderContext;
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const-string v2, "context"
|
2020-03-03 02:12:30 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
invoke-static {v3, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;->getAllowAnimatedEmojis()Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;->getUserNames()Ljava/util/Map;
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;->getChannelNames()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;->getRoles()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
sget-object v12, Lcom/discord/widgets/channels/WidgetChannelTopic$configureUI$renderedTopic$renderContext$1;->INSTANCE:Lcom/discord/widgets/channels/WidgetChannelTopic$configureUI$renderedTopic$renderContext$1;
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/channels/WidgetChannelTopic$configureUI$renderedTopic$renderContext$2;
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
move-object/from16 v14, p0
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
iget-object v15, v14, Lcom/discord/widgets/channels/WidgetChannelTopic;->viewModel:Lcom/discord/widgets/channels/WidgetChannelTopicViewModel;
|
2020-03-03 02:12:30 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
if-eqz v15, :cond_6
|
2020-03-03 02:12:30 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
invoke-direct {v2, v15}, Lcom/discord/widgets/channels/WidgetChannelTopic$configureUI$renderedTopic$renderContext$2;-><init>(Lcom/discord/widgets/channels/WidgetChannelTopicViewModel;)V
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
const/16 v17, 0x6c0
|
|
|
|
|
|
|
|
const/16 v18, 0x0
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-object v15, v2
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
move-object v2, v1
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/16 v19, 0x0
|
|
|
|
|
|
|
|
move/from16 v16, v17
|
|
|
|
|
|
|
|
move-object/from16 v17, v18
|
|
|
|
|
|
|
|
invoke-direct/range {v2 .. v17}, Lcom/discord/utilities/textprocessing/MessageRenderContext;-><init>(Landroid/content/Context;JZLjava/util/Map;Ljava/util/Map;Ljava/util/Map;ILkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;IILkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;->getAst()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {v2, v1}, Lcom/discord/utilities/textprocessing/AstRenderer;->render(Ljava/util/Collection;Ljava/lang/Object;)Lcom/facebook/drawee/span/DraweeSpanStringBuilder;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/text/SpannableStringBuilder;->length()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/16 v3, 0xc8
|
|
|
|
|
|
|
|
if-gt v2, v3, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;->isLinkifyConflicting()Z
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-result v2
|
2020-03-03 02:12:30 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
if-eqz v2, :cond_2
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-03-03 02:12:30 +00:00
|
|
|
const/16 v15, 0xf
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
goto :goto_2
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
:cond_3
|
|
|
|
:goto_1
|
|
|
|
const/4 v15, 0x0
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
:goto_2
|
2020-03-09 23:19:51 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;->getChannelName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$ViewState$Loaded;->getChannelIconType()Lcom/discord/utilities/channel/GuildChannelIconType;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/channel/GuildChannelIconUtilsKt;->mapGuildChannelTypeToIcon(Lcom/discord/utilities/channel/GuildChannelIconType;)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-direct {v2, v0, v3, v1, v15}, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;-><init>(ILjava/lang/String;Ljava/lang/CharSequence;I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-object v0, v2
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
:goto_3
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;->getTopic()Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
const/4 v15, 0x1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
invoke-static {v1, v15}, Landroidx/core/view/ViewKt;->setVisible(Landroid/view/View;Z)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/WidgetChannelTopic;->getChannelTopicTitle()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;->getAutoLinkMask()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setAutoLinkMask(I)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/WidgetChannelTopic;->getChannelTopicTitle()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;->getTopic()Ljava/lang/CharSequence;
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/WidgetChannelTopic;->getChannelName()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;->getChannelName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/WidgetChannelTopic;->getChannelName()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v3
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/channels/WidgetChannelTopic$RenderedTopic;->getChannelIcon()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/16 v8, 0xe
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v3 .. v9}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
return-void
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const-string v0, "viewModel"
|
|
|
|
|
|
|
|
invoke-static {v0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
new-instance v0, Lw/g;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lw/g;-><init>()V
|
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
.method private final getChannelName()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelTopic;->channelName$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/channels/WidgetChannelTopic;->$$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, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.method private final getChannelTopicTitle()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelTopic;->channelTopicTitle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/channels/WidgetChannelTopic;->$$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
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getContentViewResId()I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-03-10 23:21:53 +00:00
|
|
|
const v0, 0x7f0d0142
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onViewBoundOrOnResume()V
|
2020-03-03 02:12:30 +00:00
|
|
|
.locals 10
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
new-instance v9, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$Factory;
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/4 v1, 0x0
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/4 v2, 0x0
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/4 v3, 0x0
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/4 v4, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/4 v5, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/16 v7, 0x3f
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
move-object v0, v9
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v8}, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel$Factory;-><init>(Lcom/discord/stores/StoreChannelsSelected;Lcom/discord/stores/StoreChannels;Lcom/discord/stores/StoreUser;Lcom/discord/stores/StoreGuilds;Lcom/discord/stores/StoreUserSettings;Lcom/discord/stores/StoreNavigation;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-static {p0, v9}, Landroidx/lifecycle/ViewModelProviders;->of(Landroidx/fragment/app/Fragment;Landroidx/lifecycle/ViewModelProvider$Factory;)Landroidx/lifecycle/ViewModelProvider;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
move-result-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const-class v1, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
move-result-object v0
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const-string v1, "ViewModelProviders.of(th\u2026picViewModel::class.java)"
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/widgets/channels/WidgetChannelTopicViewModel;
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelTopic;->viewModel:Lcom/discord/widgets/channels/WidgetChannelTopicViewModel;
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelTopic;->viewModel:Lcom/discord/widgets/channels/WidgetChannelTopicViewModel;
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-03-01 08:10:35 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-virtual {v0}, Le/a/b/c0;->observeViewState()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/channels/WidgetChannelTopic;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v5, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
new-instance v7, Lcom/discord/widgets/channels/WidgetChannelTopic$onViewBoundOrOnResume$1;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-direct {v7, p0}, Lcom/discord/widgets/channels/WidgetChannelTopic$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/channels/WidgetChannelTopic;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/16 v8, 0x1e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const/4 v9, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-static/range {v1 .. v9}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v0, "viewModel"
|
|
|
|
|
|
|
|
invoke-static {v0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|