apkfuckery/com.discord/smali_classes2/x.smali
2020-08-10 21:02:22 +00:00

86 lines
2.1 KiB
Smali

.class public final Lx;
.super Ljava/lang/Object;
.source "WidgetGuildCallOnboardingSheet.kt"
# interfaces
.implements Lrx/functions/Action0;
# instance fields
.field public final synthetic d:Ly;
# direct methods
.method public constructor <init>(Ly;)V
.locals 0
iput-object p1, p0, Lx;->d:Ly;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final call()V
.locals 4
sget-object v0, Lw;->g:Lw$a;
iget-object v1, p0, Lx;->d:Ly;
iget-object v1, v1, Ly;->this$0:Lw;
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
move-result-object v1
const-string v2, "requireContext()"
invoke-static {v1, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v2, 0x0
if-eqz v0, :cond_1
invoke-static {v1}, Landroidx/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v0
const/4 v1, 0x1
const-string v3, "CACHE_KEY_VOICE_CHANNEL_ONBOARDED"
invoke-interface {v0, v3, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
move-result-object v0
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V
iget-object v0, p0, Lx;->d:Ly;
iget-object v0, v0, Ly;->this$0:Lw;
iget-object v0, v0, Lw;->e:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCallOnboardingSheetViewModel;->onConnectPressed()V
return-void
:cond_0
const-string v0, "viewModel"
invoke-static {v0}, Lj0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v2
:cond_1
throw v2
.end method