apkfuckery/com.discord/smali/com/discord/widgets/channels/WidgetChannelOnboardingShee...

111 lines
3.2 KiB
Smali

.class public final Lcom/discord/widgets/channels/WidgetChannelOnboardingSheet$Companion;
.super Ljava/lang/Object;
.source "WidgetChannelOnboardingSheet.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/widgets/channels/WidgetChannelOnboardingSheet;
.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/channels/WidgetChannelOnboardingSheet$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final hasUserSeenChannelOnboarding(Landroid/content/Context;)Z
.locals 2
const-string v0, "context"
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Landroidx/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object p1
const-string v0, "CACHE_KEY_CHANNEL_ONBOARDED"
const/4 v1, 0x0
invoke-interface {p1, v0, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result p1
return p1
.end method
.method public final markSeenUserChannelOnboarding(Landroid/content/Context;)V
.locals 2
const-string v0, "context"
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
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-string v0, "CACHE_KEY_CHANNEL_ONBOARDED"
const/4 v1, 0x1
invoke-interface {p1, v0, v1}, 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
.end method
.method public final show(Landroidx/fragment/app/Fragment;)V
.locals 2
const-string v0, "fragment"
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Lcom/discord/widgets/channels/WidgetChannelOnboardingSheet;
invoke-direct {v0}, Lcom/discord/widgets/channels/WidgetChannelOnboardingSheet;-><init>()V
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object p1
const-string v1, "fragment.parentFragmentManager"
invoke-static {p1, v1}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "javaClass"
invoke-virtual {v0, p1, v1}, Lcom/discord/app/AppBottomSheet;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
return-void
.end method