.class public final Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink; .super Lcom/discord/app/AppDialog; .source "WidgetNoticeNuxSamsungLink.kt" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$Companion; } .end annotation # static fields .field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty; .field public static final Companion:Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$Companion; .field private static final NOTICE_NAME:Ljava/lang/String; = "NUX/SamsungLink" # instance fields .field private final cancel$delegate:Lkotlin/properties/ReadOnlyProperty; .field private final ok$delegate:Lkotlin/properties/ReadOnlyProperty; # direct methods .method public static constructor ()V .locals 8 const/4 v0, 0x2 new-array v0, v0, [Lkotlin/reflect/KProperty; new-instance v1, Ly/m/c/s; const-class v2, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink; const-string v3, "ok" const-string v4, "getOk()Landroid/widget/TextView;" const/4 v5, 0x0 invoke-direct {v1, v2, v3, v4, v5}, Ly/m/c/s;->(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/widgets/notice/WidgetNoticeNuxSamsungLink; const-string v6, "cancel" const-string v7, "getCancel()Landroid/widget/TextView;" invoke-direct {v3, v4, v6, v7, v5}, Ly/m/c/s;->(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/widgets/notice/WidgetNoticeNuxSamsungLink;->$$delegatedProperties:[Lkotlin/reflect/KProperty; new-instance v0, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;->Companion:Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$Companion; return-void .end method .method public constructor ()V .locals 1 invoke-direct {p0}, Lcom/discord/app/AppDialog;->()V const v0, 0x7f0a03b3 invoke-static {p0, v0}, Lz/a/g0;->g(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;->ok$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a014b invoke-static {p0, v0}, Lz/a/g0;->g(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;->cancel$delegate:Lkotlin/properties/ReadOnlyProperty; return-void .end method .method private final getCancel()Landroid/widget/TextView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;->cancel$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;->$$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 .method private final getOk()Landroid/widget/TextView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;->ok$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;->$$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 .method public getContentViewResId()I .locals 1 const v0, 0x7f0d0240 return v0 .end method .method public onViewBound(Landroid/view/View;)V .locals 12 const-string/jumbo v0, "view" invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V invoke-super {p0, p1}, Lcom/discord/app/AppDialog;->onViewBound(Landroid/view/View;)V sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion; invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getNotices()Lcom/discord/stores/StoreNotices; move-result-object p1 const-string v0, "NUX/SamsungLink" invoke-virtual {p1, v0}, Lcom/discord/stores/StoreNotices;->markDialogSeen(Ljava/lang/String;)V sget-object p1, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion; invoke-virtual {p1}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI; move-result-object p1 invoke-virtual {p1}, Lcom/discord/utilities/rest/RestAPI;->getOAuthTokens()Lrx/Observable; move-result-object p1 const/4 v0, 0x0 const/4 v1, 0x1 const/4 v2, 0x0 invoke-static {p1, v0, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->restSubscribeOn$default(Lrx/Observable;ZILjava/lang/Object;)Lrx/Observable; move-result-object p1 invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable; move-result-object v3 const-wide/16 v4, 0x0 const/4 v6, 0x0 const/4 v7, 0x1 const/4 v8, 0x0 invoke-static/range {v3 .. v8}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->takeSingleUntilTimeout$default(Lrx/Observable;JZILjava/lang/Object;)Lrx/Observable; move-result-object p1 sget-object v0, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$onViewBound$1;->INSTANCE:Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$onViewBound$1; invoke-virtual {p1, v0}, Lrx/Observable;->v(Lh0/k/b;)Lrx/Observable; move-result-object p1 const-string v0, "RestAPI.api.getOAuthToke\u2026ApplicationId }\n }" invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x2 invoke-static {p1, p0, v2, v0, 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 v3 const-class v4, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink; new-instance v9, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$onViewBound$2; invoke-direct {v9, p0}, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$onViewBound$2;->(Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;)V const/4 v5, 0x0 const/4 v6, 0x0 const/4 v7, 0x0 const/16 v10, 0x1e const/4 v11, 0x0 invoke-static/range {v3 .. v11}, 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 invoke-direct {p0}, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;->getOk()Landroid/widget/TextView; move-result-object p1 new-instance v0, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$onViewBound$3; invoke-direct {v0, p0}, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$onViewBound$3;->(Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;)V invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V invoke-direct {p0}, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;->getCancel()Landroid/widget/TextView; move-result-object p1 new-instance v0, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$onViewBound$4; invoke-direct {v0, p0}, Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink$onViewBound$4;->(Lcom/discord/widgets/notice/WidgetNoticeNuxSamsungLink;)V invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V return-void .end method