apkfuckery/com.discord/smali_classes2/q.smali

346 lines
10 KiB
Smali
Raw Normal View History

2020-03-27 22:23:51 +00:00
.class public final Lq;
.super Lcom/discord/app/AppBottomSheet;
.source "WidgetGuildCallOnboardingSheet.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lq$a;
}
.end annotation
# static fields
2020-04-08 16:24:01 +00:00
.field public static final synthetic f:[Lkotlin/reflect/KProperty;
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
.field public static final g:Lq$a;
2020-03-27 22:23:51 +00:00
# instance fields
.field public final d:Lkotlin/properties/ReadOnlyProperty;
2020-04-08 16:24:01 +00:00
.field public e:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel;
2020-03-27 22:23:51 +00:00
# direct methods
.method public static constructor <clinit>()V
.locals 5
const/4 v0, 0x1
new-array v0, v0, [Lkotlin/reflect/KProperty;
new-instance v1, Ly/u/b/u;
const-class v2, Lq;
invoke-static {v2}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v2
2020-04-08 16:24:01 +00:00
const-string v3, "connectButton"
2020-03-27 22:23:51 +00:00
2020-04-10 14:32:51 +00:00
const-string v4, "getConnectButton()Lcom/discord/views/JoinVoiceChannelButton;"
2020-03-27 22:23:51 +00:00
invoke-direct {v1, v2, v3, v4}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v2, Ly/u/b/w;->a:Ly/u/b/x;
invoke-virtual {v2, v1}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
const/4 v2, 0x0
aput-object v1, v0, v2
2020-04-08 16:24:01 +00:00
sput-object v0, Lq;->f:[Lkotlin/reflect/KProperty;
2020-03-27 22:23:51 +00:00
new-instance v0, Lq$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lq$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-04-08 16:24:01 +00:00
sput-object v0, Lq;->g:Lq$a;
2020-03-27 22:23:51 +00:00
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Lcom/discord/app/AppBottomSheet;-><init>()V
2020-04-10 14:32:51 +00:00
const v0, 0x7f0a03a0
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
invoke-static {p0, v0}, Le/n/a/j/a;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
2020-03-27 22:23:51 +00:00
move-result-object v0
iput-object v0, p0, Lq;->d:Lkotlin/properties/ReadOnlyProperty;
return-void
.end method
2020-04-08 16:24:01 +00:00
.method public static final synthetic a(Lq;Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Event;)V
.locals 0
invoke-virtual {p0, p1}, Lq;->a(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Event;)V
return-void
.end method
.method public static final synthetic a(Lq;Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$ViewState;)V
2020-03-27 22:23:51 +00:00
.locals 0
2020-04-08 16:24:01 +00:00
invoke-virtual {p0, p1}, Lq;->a(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$ViewState;)V
2020-03-27 22:23:51 +00:00
return-void
.end method
# virtual methods
2020-04-08 16:24:01 +00:00
.method public final a(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Event;)V
2020-04-10 14:32:51 +00:00
.locals 9
2020-04-08 16:24:01 +00:00
sget-object v0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Event$ShowGuildVideoCapacityDialog;->INSTANCE:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Event$ShowGuildVideoCapacityDialog;
invoke-static {p1, v0}, Ly/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
sget-object p1, Le/a/a/l;->f:Le/a/a/l$a;
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
const-string v1, "requireFragmentManager()"
invoke-static {v0, v1}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1, v0}, Le/a/a/l$a;->a(Landroidx/fragment/app/FragmentManager;)V
invoke-virtual {p0}, Lcom/discord/app/AppBottomSheet;->dismiss()V
goto :goto_0
:cond_0
instance-of v0, p1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Event$LaunchGuildCallScreen;
if-eqz v0, :cond_1
sget-object v1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->Companion:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
move-result-object v2
const-string v0, "requireContext()"
invoke-static {v2, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Event$LaunchGuildCallScreen;
invoke-virtual {p1}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Event$LaunchGuildCallScreen;->getChannelId()J
move-result-wide v3
const/4 v5, 0x0
2020-04-10 14:32:51 +00:00
const/4 v6, 0x0
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
const/16 v7, 0xc
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
const/4 v8, 0x0
invoke-static/range {v1 .. v8}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;->launch$default(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;Landroid/content/Context;JLjava/lang/String;ZILjava/lang/Object;)V
2020-04-08 16:24:01 +00:00
invoke-virtual {p0}, Lcom/discord/app/AppBottomSheet;->dismiss()V
:cond_1
:goto_0
return-void
.end method
.method public final a(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$ViewState;)V
2020-04-10 14:32:51 +00:00
.locals 3
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
instance-of v0, p1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$ViewState$Loaded;
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
if-nez v0, :cond_0
2020-04-08 16:24:01 +00:00
return-void
:cond_0
2020-04-10 14:32:51 +00:00
iget-object v0, p0, Lq;->d:Lkotlin/properties/ReadOnlyProperty;
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
sget-object v1, Lq;->f:[Lkotlin/reflect/KProperty;
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
const/4 v2, 0x0
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
aget-object v1, v1, v2
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
move-result-object v0
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
check-cast v0, Lcom/discord/views/JoinVoiceChannelButton;
check-cast p1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$ViewState$Loaded;
invoke-virtual {p1}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$ViewState$Loaded;->getJoinability()Lcom/discord/utilities/voice/VoiceChannelJoinability;
move-result-object p1
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
new-instance v1, Lq$b;
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
invoke-direct {v1, p0}, Lq$b;-><init>(Lq;)V
2020-04-08 16:24:01 +00:00
2020-04-10 14:32:51 +00:00
invoke-virtual {v0, p1, v1}, Lcom/discord/views/JoinVoiceChannelButton;->a(Lcom/discord/utilities/voice/VoiceChannelJoinability;Lkotlin/jvm/functions/Function0;)V
2020-04-08 16:24:01 +00:00
return-void
.end method
2020-03-27 22:23:51 +00:00
.method public getContentViewResId()I
.locals 1
2020-04-08 16:24:01 +00:00
const v0, 0x7f0d01a4
2020-03-27 22:23:51 +00:00
return v0
.end method
2020-04-08 16:24:01 +00:00
.method public onResume()V
.locals 12
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
invoke-super {p0}, Lcom/discord/app/AppBottomSheet;->onResume()V
2020-03-27 22:23:51 +00:00
invoke-virtual {p0}, Lcom/discord/app/AppBottomSheet;->getArgumentsOrDefault()Landroid/os/Bundle;
2020-04-08 16:24:01 +00:00
move-result-object v0
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
const-string v1, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
move-result-wide v3
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
new-instance v0, Landroidx/lifecycle/ViewModelProvider;
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
new-instance v1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Factory;
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/16 v9, 0x1e
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
const/4 v10, 0x0
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
move-object v2, v1
invoke-direct/range {v2 .. v10}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel$Factory;-><init>(JLcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StorePermissions;Lcom/discord/stores/StoreChannels;Lcom/discord/stores/StoreVoiceStates;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
invoke-direct {v0, p0, v1}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V
const-class v1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel;
invoke-virtual {v0, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
2020-03-27 22:23:51 +00:00
move-result-object v0
2020-04-08 16:24:01 +00:00
const-string v1, "ViewModelProvider(this, \u2026eetViewModel::class.java)"
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
invoke-static {v0, v1}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
check-cast v0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel;
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
iput-object v0, p0, Lq;->e:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel;
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
iget-object v0, p0, Lq;->e:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel;
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
const/4 v1, 0x0
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
const-string v2, "viewModel"
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
if-eqz v0, :cond_1
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
invoke-virtual {v0}, Le/a/b/b0;->observeViewState()Lrx/Observable;
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
move-result-object v0
invoke-static {v0, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
move-result-object v3
const-class v4, Lq;
const/4 v5, 0x0
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
const/4 v6, 0x0
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
const/4 v7, 0x0
2020-03-27 22:23:51 +00:00
2020-04-08 16:24:01 +00:00
const/4 v8, 0x0
new-instance v9, Lq$c;
invoke-direct {v9, p0}, Lq$c;-><init>(Lq;)V
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
iget-object v0, p0, Lq;->e:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel;->observeEvents()Lrx/Observable;
move-result-object v0
invoke-static {v0, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
move-result-object v1
const-class v2, Lq;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
new-instance v7, Lq$d;
invoke-direct {v7, p0}, Lq$d;-><init>(Lq;)V
const/16 v8, 0x1e
const/4 v9, 0x0
invoke-static/range {v1 .. v9}, 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
2020-03-27 22:23:51 +00:00
return-void
2020-04-08 16:24:01 +00:00
:cond_0
invoke-static {v2}, Ly/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v1
:cond_1
invoke-static {v2}, Ly/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v1
2020-03-27 22:23:51 +00:00
.end method