apkfuckery/com.discord/smali/r$a.smali
2020-05-11 21:22:21 +02:00

137 lines
3.3 KiB
Smali

.class public final Lr$a;
.super Ljava/lang/Object;
.source "WidgetGuildCallOnboardingSheet.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lr;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Landroidx/fragment/app/Fragment;J)V
.locals 3
if-eqz p1, :cond_0
new-instance v0, Lr;
invoke-direct {v0}, Lr;-><init>()V
new-instance v1, Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
const-string v2, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
invoke-virtual {v1, v2, p2, p3}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V
invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object p1
const-string p2, "fragment.requireFragmentManager()"
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-class p2, Lr;
invoke-virtual {p2}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object p2
invoke-virtual {v0, p1, p2}, Lcom/discord/app/AppBottomSheet;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
return-void
:cond_0
const-string p1, "fragment"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final a(Landroid/content/Context;)Z
.locals 2
if-eqz p1, :cond_0
invoke-static {p1}, Landroidx/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object p1
const/4 v0, 0x0
const-string v1, "CACHE_KEY_VOICE_CHANNEL_ONBOARDED"
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result p1
return p1
:cond_0
const-string p1, "context"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final b(Landroid/content/Context;)V
.locals 2
if-eqz p1, :cond_0
invoke-static {p1}, Landroidx/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p1
const/4 v0, 0x1
const-string v1, "CACHE_KEY_VOICE_CHANNEL_ONBOARDED"
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
return-void
:cond_0
const-string p1, "context"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method