174 lines
5.4 KiB
Smali
174 lines
5.4 KiB
Smali
.class public final Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion$enqueue$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetNoticePopupChannel.kt"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Func2;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion;->enqueue(Ljava/lang/String;Lcom/discord/models/domain/ModelMessage;Lkotlin/jvm/functions/Function1;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T1:",
|
|
"Ljava/lang/Object;",
|
|
"T2:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/functions/Func2<",
|
|
"TT1;TT2;TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
.field public final synthetic $noticeName:Ljava/lang/String;
|
|
|
|
.field public final synthetic $onClick:Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;Lcom/discord/models/domain/ModelMessage;Lkotlin/jvm/functions/Function1;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion$enqueue$1;->$noticeName:Ljava/lang/String;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion$enqueue$1;->$message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion$enqueue$1;->$onClick:Lkotlin/jvm/functions/Function1;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final call(Lcom/discord/models/domain/ModelChannel;Ljava/lang/Long;)Lcom/discord/widgets/notice/WidgetNoticePopupChannel;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v1, v0
|
|
|
|
:goto_0
|
|
invoke-static {p2, v1}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
new-instance p2, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;
|
|
|
|
invoke-direct {p2}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;-><init>()V
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion$enqueue$1;->$noticeName:Ljava/lang/String;
|
|
|
|
const-string v2, "POPUP_NAME"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string p1, ""
|
|
|
|
:goto_1
|
|
const-string v1, "POPUP_TITLE"
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion$enqueue$1;->$message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMessage;->getContent()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "POPUP_BODY"
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
const-string p1, "asset://asset/images/default_icon.jpg"
|
|
|
|
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "POPUP_ICON"
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
|
|
|
const/4 p1, 0x5
|
|
|
|
const-string v1, "AUTO_DISMISS_PERIOD_SECS"
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion$enqueue$1;->$onClick:Lkotlin/jvm/functions/Function1;
|
|
|
|
invoke-virtual {p2, p1}, Lcom/discord/widgets/notice/WidgetNoticePopup;->setOnClick(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion$enqueue$1;->$message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
invoke-static {p2, p1}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel;->access$setMessage$p(Lcom/discord/widgets/notice/WidgetNoticePopupChannel;Lcom/discord/models/domain/ModelMessage;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
check-cast p2, Ljava/lang/Long;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/notice/WidgetNoticePopupChannel$Companion$enqueue$1;->call(Lcom/discord/models/domain/ModelChannel;Ljava/lang/Long;)Lcom/discord/widgets/notice/WidgetNoticePopupChannel;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|