.class public final Lcom/discord/widgets/chat/WidgetUrlActions; .super Lcom/discord/app/AppBottomSheet; .source "WidgetUrlActions.kt" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/discord/widgets/chat/WidgetUrlActions$Companion; } .end annotation # static fields .field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty; .field public static final Companion:Lcom/discord/widgets/chat/WidgetUrlActions$Companion; .field public static final INTENT_URL:Ljava/lang/String; = "INTENT_URL" # instance fields .field public final copyBtn$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final openBtn$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final shareBtn$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final url$delegate:Lkotlin/Lazy; .field public final urlTv$delegate:Lkotlin/properties/ReadOnlyProperty; # direct methods .method public static constructor ()V .locals 5 const/4 v0, 0x4 new-array v0, v0, [Lkotlin/reflect/KProperty; const-class v1, Lcom/discord/widgets/chat/WidgetUrlActions; const-string/jumbo v2, "urlTv" const-string v3, "getUrlTv()Landroid/widget/TextView;" const/4 v4, 0x0 invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 aput-object v1, v0, v4 const-class v1, Lcom/discord/widgets/chat/WidgetUrlActions; const-string v2, "copyBtn" const-string v3, "getCopyBtn()Landroid/view/View;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x1 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/WidgetUrlActions; const-string v2, "openBtn" const-string v3, "getOpenBtn()Landroid/view/View;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x2 aput-object v1, v0, v2 const-class v1, Lcom/discord/widgets/chat/WidgetUrlActions; const-string v2, "shareBtn" const-string v3, "getShareBtn()Landroid/view/View;" invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->M(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v1 const/4 v2, 0x3 aput-object v1, v0, v2 sput-object v0, Lcom/discord/widgets/chat/WidgetUrlActions;->$$delegatedProperties:[Lkotlin/reflect/KProperty; new-instance v0, Lcom/discord/widgets/chat/WidgetUrlActions$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lcom/discord/widgets/chat/WidgetUrlActions$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lcom/discord/widgets/chat/WidgetUrlActions;->Companion:Lcom/discord/widgets/chat/WidgetUrlActions$Companion; return-void .end method .method public constructor ()V .locals 1 invoke-direct {p0}, Lcom/discord/app/AppBottomSheet;->()V const v0, 0x7f0a0320 invoke-static {p0, v0}, Lc0/j/a;->h(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->urlTv$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a031d invoke-static {p0, v0}, Lc0/j/a;->h(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->copyBtn$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a031e invoke-static {p0, v0}, Lc0/j/a;->h(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->openBtn$delegate:Lkotlin/properties/ReadOnlyProperty; const v0, 0x7f0a031f invoke-static {p0, v0}, Lc0/j/a;->h(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->shareBtn$delegate:Lkotlin/properties/ReadOnlyProperty; new-instance v0, Lcom/discord/widgets/chat/WidgetUrlActions$url$2; invoke-direct {v0, p0}, Lcom/discord/widgets/chat/WidgetUrlActions$url$2;->(Lcom/discord/widgets/chat/WidgetUrlActions;)V invoke-static {v0}, Lf/h/a/f/e/n/f;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy; move-result-object v0 iput-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->url$delegate:Lkotlin/Lazy; return-void .end method .method public static final synthetic access$getArgumentsOrDefault$p(Lcom/discord/widgets/chat/WidgetUrlActions;)Landroid/os/Bundle; .locals 0 invoke-virtual {p0}, Lcom/discord/app/AppBottomSheet;->getArgumentsOrDefault()Landroid/os/Bundle; move-result-object p0 return-object p0 .end method .method public static final synthetic access$getUrl$p(Lcom/discord/widgets/chat/WidgetUrlActions;)Ljava/lang/String; .locals 0 invoke-direct {p0}, Lcom/discord/widgets/chat/WidgetUrlActions;->getUrl()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method private final getCopyBtn()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->copyBtn$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/WidgetUrlActions;->$$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/view/View; return-object v0 .end method .method private final getOpenBtn()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->openBtn$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/WidgetUrlActions;->$$delegatedProperties:[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 check-cast v0, Landroid/view/View; return-object v0 .end method .method private final getShareBtn()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->shareBtn$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/WidgetUrlActions;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x3 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/view/View; return-object v0 .end method .method private final getUrl()Ljava/lang/String; .locals 1 iget-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->url$delegate:Lkotlin/Lazy; invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/String; return-object v0 .end method .method private final getUrlTv()Landroid/widget/TextView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/chat/WidgetUrlActions;->urlTv$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/chat/WidgetUrlActions;->$$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 public static final launch(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V .locals 1 sget-object v0, Lcom/discord/widgets/chat/WidgetUrlActions;->Companion:Lcom/discord/widgets/chat/WidgetUrlActions$Companion; invoke-virtual {v0, p0, p1}, Lcom/discord/widgets/chat/WidgetUrlActions$Companion;->launch(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V return-void .end method .method public static final requestNotice(Ljava/lang/String;)V .locals 1 sget-object v0, Lcom/discord/widgets/chat/WidgetUrlActions;->Companion:Lcom/discord/widgets/chat/WidgetUrlActions$Companion; invoke-virtual {v0, p0}, Lcom/discord/widgets/chat/WidgetUrlActions$Companion;->requestNotice(Ljava/lang/String;)V return-void .end method # virtual methods .method public getContentViewResId()I .locals 1 const v0, 0x7f0d02a8 return v0 .end method .method public onDestroy()V .locals 7 sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion; invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getNotices()Lcom/discord/stores/StoreNotices; move-result-object v1 invoke-direct {p0}, Lcom/discord/widgets/chat/WidgetUrlActions;->getUrl()Ljava/lang/String; move-result-object v2 const-wide/16 v3, 0x0 const/4 v5, 0x2 const/4 v6, 0x0 invoke-static/range {v1 .. v6}, Lcom/discord/stores/StoreNotices;->markSeen$default(Lcom/discord/stores/StoreNotices;Ljava/lang/String;JILjava/lang/Object;)V invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroy()V return-void .end method .method public onPause()V .locals 0 invoke-virtual {p0}, Lcom/discord/app/AppBottomSheet;->dismiss()V invoke-super {p0}, Lcom/discord/app/AppBottomSheet;->onPause()V return-void .end method .method public onResume()V .locals 2 invoke-super {p0}, Lcom/discord/app/AppBottomSheet;->onResume()V const/4 v0, 0x0 const/4 v1, 0x1 invoke-static {p0, v0, v1, v0}, Lcom/discord/app/AppBottomSheet;->hideKeyboard$default(Lcom/discord/app/AppBottomSheet;Landroid/view/View;ILjava/lang/Object;)V return-void .end method .method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V .locals 1 const-string/jumbo v0, "view" invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V invoke-super {p0, p1, p2}, Lcom/discord/app/AppBottomSheet;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V invoke-direct {p0}, Lcom/discord/widgets/chat/WidgetUrlActions;->getUrlTv()Landroid/widget/TextView; move-result-object p1 invoke-direct {p0}, Lcom/discord/widgets/chat/WidgetUrlActions;->getUrl()Ljava/lang/String; move-result-object p2 invoke-static {p1, p2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V invoke-direct {p0}, Lcom/discord/widgets/chat/WidgetUrlActions;->getCopyBtn()Landroid/view/View; move-result-object p1 new-instance p2, Lcom/discord/widgets/chat/WidgetUrlActions$onViewCreated$1; invoke-direct {p2, p0}, Lcom/discord/widgets/chat/WidgetUrlActions$onViewCreated$1;->(Lcom/discord/widgets/chat/WidgetUrlActions;)V invoke-virtual {p1, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V invoke-direct {p0}, Lcom/discord/widgets/chat/WidgetUrlActions;->getOpenBtn()Landroid/view/View; move-result-object p1 new-instance p2, Lcom/discord/widgets/chat/WidgetUrlActions$onViewCreated$2; invoke-direct {p2, p0}, Lcom/discord/widgets/chat/WidgetUrlActions$onViewCreated$2;->(Lcom/discord/widgets/chat/WidgetUrlActions;)V invoke-virtual {p1, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V invoke-direct {p0}, Lcom/discord/widgets/chat/WidgetUrlActions;->getShareBtn()Landroid/view/View; move-result-object p1 new-instance p2, Lcom/discord/widgets/chat/WidgetUrlActions$onViewCreated$3; invoke-direct {p2, p0}, Lcom/discord/widgets/chat/WidgetUrlActions$onViewCreated$3;->(Lcom/discord/widgets/chat/WidgetUrlActions;)V invoke-virtual {p1, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V return-void .end method