108 lines
3 KiB
Smali
108 lines
3 KiB
Smali
.class public final Lcom/discord/utilities/premium/PremiumUtils$getHandOffAndOpenUrl$1;
|
|
.super Lj0/n/c/i;
|
|
.source "PremiumUtils.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/premium/PremiumUtils;->getHandOffAndOpenUrl(Lcom/discord/app/AppFragment;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/Long;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lj0/n/c/i;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Landroid/net/Uri;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $weakFragment:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/ref/WeakReference;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/premium/PremiumUtils$getHandOffAndOpenUrl$1;->$weakFragment:Ljava/lang/ref/WeakReference;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Landroid/net/Uri;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/premium/PremiumUtils$getHandOffAndOpenUrl$1;->invoke(Landroid/net/Uri;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(Landroid/net/Uri;)V
|
|
.locals 4
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/premium/PremiumUtils$getHandOffAndOpenUrl$1;->$weakFragment:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/app/AppFragment;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v1, "weakFragment.get() ?: return@appSubscribe"
|
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "fragment.requireContext()"
|
|
|
|
invoke-static {v1, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-instance v3, Lcom/discord/utilities/premium/PremiumUtils$getHandOffAndOpenUrl$1$1;
|
|
|
|
invoke-direct {v3, v0}, Lcom/discord/utilities/premium/PremiumUtils$getHandOffAndOpenUrl$1$1;-><init>(Lcom/discord/app/AppFragment;)V
|
|
|
|
invoke-static {v1, p1, v2, v3}, Lcom/discord/utilities/uri/UriHandler;->openUrlWithCustomTabs(Landroid/content/Context;Landroid/net/Uri;ZLkotlin/jvm/functions/Function1;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "handoffUrl"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|