147 lines
4.8 KiB
Smali
147 lines
4.8 KiB
Smali
.class public final Lcom/discord/widgets/user/calls/PrivateCallLauncher;
|
|
.super Ljava/lang/Object;
|
|
.source "PrivateCallLauncher.kt"
|
|
|
|
|
|
# instance fields
|
|
.field public final appComponent:Lcom/discord/app/AppComponent;
|
|
|
|
.field public final appPermissionsRequests:Lcom/discord/app/AppPermissions$Requests;
|
|
|
|
.field public final context:Landroid/content/Context;
|
|
|
|
.field public final fragmentManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/app/AppPermissions$Requests;Lcom/discord/app/AppComponent;Landroid/content/Context;Landroidx/fragment/app/FragmentManager;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->appPermissionsRequests:Lcom/discord/app/AppPermissions$Requests;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->appComponent:Lcom/discord/app/AppComponent;
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->context:Landroid/content/Context;
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->fragmentManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "fragmentManager"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p1, "appComponent"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p1, "appPermissionsRequests"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getAppComponent()Lcom/discord/app/AppComponent;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->appComponent:Lcom/discord/app/AppComponent;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getAppPermissionsRequests()Lcom/discord/app/AppPermissions$Requests;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->appPermissionsRequests:Lcom/discord/app/AppPermissions$Requests;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getContext()Landroid/content/Context;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->context:Landroid/content/Context;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->fragmentManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final launchVideoCall(J)V
|
|
.locals 8
|
|
|
|
sget-object v0, Lcom/discord/widgets/voice/call/WidgetPrivateCall;->Companion:Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;
|
|
|
|
iget-object v4, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->appPermissionsRequests:Lcom/discord/app/AppPermissions$Requests;
|
|
|
|
iget-object v6, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->appComponent:Lcom/discord/app/AppComponent;
|
|
|
|
iget-object v5, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->context:Landroid/content/Context;
|
|
|
|
iget-object v7, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->fragmentManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
move-wide v1, p1
|
|
|
|
invoke-virtual/range {v0 .. v7}, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;->callAndLaunch(JZLcom/discord/app/AppPermissions$Requests;Landroid/content/Context;Lcom/discord/app/AppComponent;Landroidx/fragment/app/FragmentManager;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final launchVoiceCall(J)V
|
|
.locals 8
|
|
|
|
sget-object v0, Lcom/discord/widgets/voice/call/WidgetPrivateCall;->Companion:Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;
|
|
|
|
iget-object v4, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->appPermissionsRequests:Lcom/discord/app/AppPermissions$Requests;
|
|
|
|
iget-object v6, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->appComponent:Lcom/discord/app/AppComponent;
|
|
|
|
iget-object v5, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->context:Landroid/content/Context;
|
|
|
|
iget-object v7, p0, Lcom/discord/widgets/user/calls/PrivateCallLauncher;->fragmentManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move-wide v1, p1
|
|
|
|
invoke-virtual/range {v0 .. v7}, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;->callAndLaunch(JZLcom/discord/app/AppPermissions$Requests;Landroid/content/Context;Lcom/discord/app/AppComponent;Landroidx/fragment/app/FragmentManager;)V
|
|
|
|
return-void
|
|
.end method
|