1123 lines
34 KiB
Smali
1123 lines
34 KiB
Smali
.class public Lcom/discord/widgets/notice/WidgetNoticePopupChannel;
|
|
.super Lcom/discord/widgets/notice/WidgetNoticePopup;
|
|
.source "WidgetNoticePopupChannel.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;,
|
|
Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion;
|
|
|
|
|
|
# instance fields
|
|
.field public final attachmentIv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
.field public final subtitleTv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "subtitleTv"
|
|
|
|
const-string v4, "getSubtitleTv()Landroid/widget/TextView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "attachmentIv"
|
|
|
|
const-string v4, "getAttachmentIv()Lcom/facebook/drawee/view/SimpleDraweeView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sput-object v0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->Companion:Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/notice/WidgetNoticePopup;-><init>()V
|
|
|
|
const v0, 0x7f0a06b7
|
|
|
|
invoke-static {p0, v0}, Lf/m/b/f/a;->i(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->subtitleTv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a06b2
|
|
|
|
invoke-static {p0, v0}, Lf/m/b/f/a;->i(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->attachmentIv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/notice/WidgetNoticePopupChannel;Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->configureUI(Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$createModel(Lcom/discord/widgets/notice/WidgetNoticePopupChannel;Lcom/discord/models/domain/ModelMessage;Ljava/lang/Long;Lcom/discord/models/domain/ModelChannel;Lcom/discord/models/domain/ModelGuild;Lcom/facebook/drawee/span/DraweeSpanStringBuilder;Ljava/util/Map;)Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;
|
|
.locals 0
|
|
|
|
invoke-direct/range {p0 .. p6}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->createModel(Lcom/discord/models/domain/ModelMessage;Ljava/lang/Long;Lcom/discord/models/domain/ModelChannel;Lcom/discord/models/domain/ModelGuild;Lcom/facebook/drawee/span/DraweeSpanStringBuilder;Ljava/util/Map;)Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getMessage$p(Lcom/discord/widgets/notice/WidgetNoticePopupChannel;)Lcom/discord/models/domain/ModelMessage;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$openChannelNotificationSettings(Lcom/discord/widgets/notice/WidgetNoticePopupChannel;Landroid/content/Context;J)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->openChannelNotificationSettings(Landroid/content/Context;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$setMessage$p(Lcom/discord/widgets/notice/WidgetNoticePopupChannel;Lcom/discord/models/domain/ModelMessage;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;)V
|
|
.locals 18
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopup;->dismiss()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopup;->getIconIv()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;->getIcon()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/16 v10, 0xfc
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-static/range {v2 .. v11}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Ljava/util/List;ILjava/lang/Object;)V
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopup;->getTitleTv()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->getSubtitleTv()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;->getSubtitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v2, v3}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;->getBody()Lcom/facebook/drawee/span/DraweeSpanStringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Lj0/t/k;->isBlank(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
xor-int/lit8 v2, v2, 0x1
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopup;->getBodyTv()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
check-cast v2, Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;->getBody()Lcom/facebook/drawee/span/DraweeSpanStringBuilder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;->setDraweeSpanStringBuilder(Lcom/facebook/drawee/span/DraweeSpanStringBuilder;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance v1, Lkotlin/TypeCastException;
|
|
|
|
const-string v2, "null cannot be cast to non-null type com.discord.utilities.view.text.SimpleDraweeSpanTextView"
|
|
|
|
invoke-direct {v1, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_2
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopup;->getBodyTv()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
const/16 v3, 0x8
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
:goto_0
|
|
iget-object v2, v0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage;->getAttachments()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
invoke-static {v2}, Lj0/i/l;->firstOrNull(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/discord/models/domain/ModelMessageAttachment;
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->getAttachmentIv()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v5}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessageAttachment;->isSpoilerAttachment()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->getAttachmentIv()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->getAttachmentIv()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v6
|
|
|
|
const v7, 0x7f04053b
|
|
|
|
invoke-static {v6, v7, v5, v4, v3}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {v2, v6}, Lcom/facebook/drawee/view/SimpleDraweeView;->setImageResource(I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessageAttachment;->getType()Lcom/discord/models/domain/ModelMessageAttachment$Type;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_5
|
|
|
|
if-eq v6, v4, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->getAttachmentIv()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/facebook/drawee/view/DraweeView;->getHierarchy()Lcom/facebook/drawee/interfaces/DraweeHierarchy;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->getAttachmentIv()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v6
|
|
|
|
const v7, 0x7f040560
|
|
|
|
invoke-static {v6, v7, v5, v4, v3}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
|
|
|
|
move-result v6
|
|
|
|
sget-object v7, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->f:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
|
|
|
|
iget-object v8, v2, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->b:Landroid/content/res/Resources;
|
|
|
|
invoke-virtual {v8, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v2, v6, v7}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->p(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->getAttachmentIv()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessageAttachment;->getProxyUrl()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_6
|
|
|
|
move-object v9, v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessageAttachment;->getUrl()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v9, v2
|
|
|
|
:goto_1
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v16, 0xfc
|
|
|
|
const/16 v17, 0x0
|
|
|
|
invoke-static/range {v8 .. v17}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Ljava/util/List;ILjava/lang/Object;)V
|
|
|
|
:cond_7
|
|
:goto_2
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v6, "requireContext()"
|
|
|
|
invoke-static {v2, v6}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;->isDirectMessageType()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_8
|
|
|
|
const v6, 0x7f04028b
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
const v6, 0x7f0402bb
|
|
|
|
:goto_3
|
|
invoke-static {v2, v6, v5, v4, v3}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/notice/WidgetNoticePopup;->getCloseBtn()Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_9
|
|
|
|
check-cast v3, Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
new-instance v4, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$configureUI$$inlined$with$lambda$1;
|
|
|
|
invoke-direct {v4, v0, v2, v1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$configureUI$$inlined$with$lambda$1;-><init>(Lcom/discord/widgets/notice/WidgetNoticePopupChannel;ILcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;)V
|
|
|
|
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
|
|
:cond_9
|
|
new-instance v1, Lkotlin/TypeCastException;
|
|
|
|
const-string v2, "null cannot be cast to non-null type android.widget.ImageView"
|
|
|
|
invoke-direct {v1, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method private final createMessagePrefix(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
.locals 5
|
|
|
|
new-instance v0, Landroid/text/SpannableStringBuilder;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, ": "
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
const v1, 0x7f040414
|
|
|
|
invoke-static {p1, v1}, Lcom/discord/utilities/color/ColorCompat;->getThemedColor(Landroid/content/Context;I)I
|
|
|
|
move-result p1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
new-instance v2, Landroid/text/style/ForegroundColorSpan;
|
|
|
|
invoke-direct {v2, p1}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
aput-object v2, v1, p1
|
|
|
|
new-instance v2, Landroid/text/style/StyleSpan;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-direct {v2, v3}, Landroid/text/style/StyleSpan;-><init>(I)V
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
invoke-static {v1}, Lf/m/b/f/a;->listOf([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0}, Landroid/text/SpannableStringBuilder;->length()I
|
|
|
|
move-result v3
|
|
|
|
const/16 v4, 0x21
|
|
|
|
invoke-virtual {v0, v2, p1, v3, v4}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final createModel(Lcom/discord/models/domain/ModelMessage;Ljava/lang/Long;Lcom/discord/models/domain/ModelChannel;Lcom/discord/models/domain/ModelGuild;Lcom/facebook/drawee/span/DraweeSpanStringBuilder;Ljava/util/Map;)Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;
|
|
.locals 12
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/models/domain/ModelMessage;",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
"Lcom/facebook/drawee/span/DraweeSpanStringBuilder;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelGuildMember$Computed;",
|
|
">;)",
|
|
"Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object v0, p3
|
|
|
|
move-object/from16 v4, p5
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_f
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v5
|
|
|
|
cmp-long v7, v5, v2
|
|
|
|
if-nez v7, :cond_1
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_1
|
|
:goto_0
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v5
|
|
|
|
const-wide/16 v7, -0x1
|
|
|
|
cmp-long v3, v5, v7
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
:goto_1
|
|
if-nez v2, :cond_4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
cmp-long v7, v2, v5
|
|
|
|
if-nez v7, :cond_5
|
|
|
|
:goto_2
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
invoke-direct {v3, v2, v1}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
:goto_3
|
|
if-eqz p4, :cond_6
|
|
|
|
invoke-virtual/range {p4 .. p4}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
move-object v2, v1
|
|
|
|
:goto_4
|
|
const/16 v3, 0x23
|
|
|
|
invoke-static {v3}, Lf/e/b/a/a;->B(C)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v5, Lkotlin/Pair;
|
|
|
|
invoke-direct {v5, v2, v3}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
move-object v3, v5
|
|
|
|
:goto_5
|
|
iget-object v2, v3, Lkotlin/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
iget-object v3, v3, Lkotlin/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast v3, Ljava/lang/String;
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelChannel;->getType()I
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_7
|
|
|
|
const/4 v5, 0x2
|
|
|
|
invoke-static {p3, v1, v5, v1}, Lcom/discord/utilities/icon/IconUtils;->getForChannel$default(Lcom/discord/models/domain/ModelChannel;Ljava/lang/Integer;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/16 v9, 0xc
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const-string v6, "asset://asset/images/default_icon_selected.jpg"
|
|
|
|
move-object/from16 v5, p4
|
|
|
|
invoke-static/range {v5 .. v10}, Lcom/discord/utilities/icon/IconUtils;->getForGuild$default(Lcom/discord/models/domain/ModelGuild;Ljava/lang/String;ZLjava/lang/Integer;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
:goto_6
|
|
if-eqz v5, :cond_8
|
|
|
|
goto :goto_7
|
|
|
|
:cond_8
|
|
const-string v5, "asset://asset/images/default_icon.jpg"
|
|
|
|
:goto_7
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelChannel;->getType()I
|
|
|
|
move-result v6
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x1
|
|
|
|
if-eq v6, v8, :cond_9
|
|
|
|
const/4 v9, 0x3
|
|
|
|
if-eq v6, v9, :cond_9
|
|
|
|
const/4 v6, 0x0
|
|
|
|
goto :goto_8
|
|
|
|
:cond_9
|
|
const/4 v6, 0x1
|
|
|
|
:goto_8
|
|
invoke-static/range {p5 .. p5}, Lj0/t/k;->isBlank(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v8
|
|
|
|
const-string v9, ""
|
|
|
|
if-eqz v8, :cond_c
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMessage;->getEmbeds()Ljava/util/List;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v10, "savedMessage.embeds"
|
|
|
|
invoke-static {v8, v10}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v8}, Lj0/i/l;->firstOrNull(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Lcom/discord/models/domain/ModelMessageEmbed;
|
|
|
|
if-eqz v8, :cond_a
|
|
|
|
invoke-virtual {v8}, Lcom/discord/models/domain/ModelMessageEmbed;->getTitle()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_a
|
|
if-eqz v1, :cond_b
|
|
|
|
goto :goto_9
|
|
|
|
:cond_b
|
|
move-object v1, v9
|
|
|
|
:goto_9
|
|
invoke-virtual {v4, v1}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
:cond_c
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelChannel;->isDM()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_d
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMessage;->getAuthor()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v8, "sender"
|
|
|
|
invoke-static {v1, v8}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v8
|
|
|
|
move-object/from16 v10, p6
|
|
|
|
invoke-interface {v10, v8}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Lcom/discord/models/domain/ModelGuildMember$Computed;
|
|
|
|
invoke-virtual {v1, v8, p3}, Lcom/discord/models/domain/ModelUser;->getNickOrUsername(Lcom/discord/models/domain/ModelGuildMember$Computed;Lcom/discord/models/domain/ModelChannel;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "senderName"
|
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
move-object v8, p0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->createMessagePrefix(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v4, v7, v0}, Landroid/text/SpannableStringBuilder;->insert(ILjava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
goto :goto_a
|
|
|
|
:cond_d
|
|
move-object v8, p0
|
|
|
|
:goto_a
|
|
if-eqz v2, :cond_e
|
|
|
|
move-object v1, v2
|
|
|
|
goto :goto_b
|
|
|
|
:cond_e
|
|
move-object v1, v9
|
|
|
|
:goto_b
|
|
new-instance v7, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;
|
|
|
|
move-object v0, v7
|
|
|
|
move-object v2, v3
|
|
|
|
move-object v3, v5
|
|
|
|
move-object/from16 v4, p5
|
|
|
|
move v5, v6
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Model;-><init>(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/String;Lcom/facebook/drawee/span/DraweeSpanStringBuilder;Z)V
|
|
|
|
return-object v7
|
|
|
|
:cond_f
|
|
:goto_c
|
|
move-object v8, p0
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private final getAttachmentIv()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->attachmentIv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->$$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, Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getSubtitleTv()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->subtitleTv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->$$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
|
|
|
|
.method private final openChannelNotificationSettings(Landroid/content/Context;J)V
|
|
.locals 2
|
|
|
|
sget-object v0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->Companion:Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Companion;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, p1, p2, p3, v1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Companion;->launch(Landroid/content/Context;JZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d020d
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
.locals 13
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppDialog;->onViewBoundOrOnResume()V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
sget-object v0, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/notice/WidgetNoticePopup;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, " dropped: savedMessage lost"
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v0, v3, v2, v1, v2}, Lcom/discord/utilities/logging/Logger;->v$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/notice/WidgetNoticePopup;->dismiss()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "requireContext()"
|
|
|
|
invoke-static {v3, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v4, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->Companion:Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion;
|
|
|
|
invoke-static {v4, v3, v0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion;->access$getMessageRenderContext(Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion;Landroid/content/Context;Lcom/discord/models/domain/ModelMessage;)Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v4, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$onViewBoundOrOnResume$bodyTextObs$1;
|
|
|
|
invoke-direct {v4, v0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$onViewBoundOrOnResume$bodyTextObs$1;-><init>(Lcom/discord/models/domain/ModelMessage;)V
|
|
|
|
invoke-virtual {v3, v4}, Lrx/Observable;->D(Lr0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "getMessageRenderContext(\u2026 renderContext)\n }"
|
|
|
|
invoke-static {v3, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v3}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationBuffered(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Lrx/Observable;->q()Lrx/Observable;
|
|
|
|
move-result-object v8
|
|
|
|
sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMessage;->getChannelId()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-virtual {v3, v4, v5}, Lcom/discord/stores/StoreGuilds;->observeFromChannelId(J)Lrx/Observable;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getChannels()Lcom/discord/stores/StoreChannels;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMessage;->getChannelId()J
|
|
|
|
move-result-wide v5
|
|
|
|
invoke-virtual {v3, v5, v6}, Lcom/discord/stores/StoreChannels;->get(J)Lrx/Observable;
|
|
|
|
move-result-object v5
|
|
|
|
sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMessage;->getGuildId()Ljava/lang/Long;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-wide/16 v6, 0x0
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v6
|
|
|
|
:goto_0
|
|
invoke-virtual {v6}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-virtual {v3, v6, v7}, Lcom/discord/stores/StoreGuilds;->observeComputed(J)Lrx/Observable;
|
|
|
|
move-result-object v6
|
|
|
|
sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getChannelsSelected()Lcom/discord/stores/StoreChannelsSelected;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreChannelsSelected;->observeId()Lrx/Observable;
|
|
|
|
move-result-object v7
|
|
|
|
new-instance v9, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$onViewBoundOrOnResume$1;
|
|
|
|
invoke-direct {v9, p0, v0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/notice/WidgetNoticePopupChannel;Lcom/discord/models/domain/ModelMessage;)V
|
|
|
|
invoke-static/range {v4 .. v9}, Lrx/Observable;->g(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func5;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-virtual {v0, v3}, Lrx/Observable;->U(I)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v3, "Observable\n .comb\u2026 }\n .take(1)"
|
|
|
|
invoke-static {v0, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0, p0, v2, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v4
|
|
|
|
const-class v5, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
new-instance v10, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$onViewBoundOrOnResume$2;
|
|
|
|
invoke-direct {v10, p0}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$onViewBoundOrOnResume$2;-><init>(Lcom/discord/widgets/notice/WidgetNoticePopupChannel;)V
|
|
|
|
const/16 v11, 0x1e
|
|
|
|
const/4 v12, 0x0
|
|
|
|
invoke-static/range {v4 .. v12}, 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
|
|
|
|
return-void
|
|
.end method
|