157 lines
3.9 KiB
Smali
157 lines
3.9 KiB
Smali
.class public final Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetPrivateCall.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/voice/call/WidgetPrivateCall;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final callAndLaunch(JZLcom/discord/app/AppPermissions$Requests;Landroid/content/Context;Lcom/discord/app/AppComponent;Landroidx/fragment/app/FragmentManager;)V
|
|
.locals 10
|
|
|
|
move-object v0, p4
|
|
|
|
move-object v5, p5
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
if-eqz p6, :cond_2
|
|
|
|
if-eqz p7, :cond_1
|
|
|
|
new-instance v3, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v3, p5}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion$callAndLaunch$1;
|
|
|
|
invoke-direct {v1, p4}, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion$callAndLaunch$1;-><init>(Lcom/discord/app/AppPermissions$Requests;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v1, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion$callAndLaunch$2;
|
|
|
|
invoke-direct {v1, p4}, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion$callAndLaunch$2;-><init>(Lcom/discord/app/AppPermissions$Requests;)V
|
|
|
|
:goto_0
|
|
move-object v8, v1
|
|
|
|
new-instance v9, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion$callAndLaunch$3;
|
|
|
|
move-object v0, v9
|
|
|
|
move-wide v1, p1
|
|
|
|
move-object/from16 v4, p6
|
|
|
|
move-object v5, p5
|
|
|
|
move-object/from16 v6, p7
|
|
|
|
move v7, p3
|
|
|
|
invoke-direct/range {v0 .. v7}, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion$callAndLaunch$3;-><init>(JLjava/lang/ref/WeakReference;Lcom/discord/app/AppComponent;Landroid/content/Context;Landroidx/fragment/app/FragmentManager;Z)V
|
|
|
|
invoke-interface {v8, v9}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string v0, "fragmentManager"
|
|
|
|
invoke-static {v0}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_2
|
|
const-string v0, "appComponent"
|
|
|
|
invoke-static {v0}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_3
|
|
const-string v0, "context"
|
|
|
|
invoke-static {v0}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_4
|
|
const-string v0, "appPermissionsRequests"
|
|
|
|
invoke-static {v0}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final launch(JLandroid/content/Context;)V
|
|
.locals 2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v1, "INTENT_EXTRA_CHANNEL_ID"
|
|
|
|
invoke-virtual {v0, v1, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const/high16 p2, 0x4000000
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-class p2, Lcom/discord/widgets/voice/call/WidgetPrivateCall;
|
|
|
|
invoke-static {p3, p2, p1}, Le/a/b/i;->b(Landroid/content/Context;Ljava/lang/Class;Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|