apkfuckery/com.discord/smali/androidx/core/content/SharedPreferencesKt.smali

99 lines
2.8 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Landroidx/core/content/SharedPreferencesKt;
.super Ljava/lang/Object;
.source "SharedPreferences.kt"
# direct methods
.method public static final edit(Landroid/content/SharedPreferences;ZLkotlin/jvm/functions/Function1;)V
.locals 1
.annotation build Landroid/annotation/SuppressLint;
value = {
"ApplySharedPref"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/SharedPreferences;",
"Z",
"Lkotlin/jvm/functions/Function1<",
"-",
"Landroid/content/SharedPreferences$Editor;",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
2020-09-16 23:45:23 +00:00
const-string v0, "$this$edit"
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
invoke-static {p0, v0}, Lb0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
const-string v0, "action"
2020-11-05 20:51:11 +00:00
invoke-static {p2, v0}, Lb0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
const-string v0, "editor"
2020-11-05 20:51:11 +00:00
invoke-static {p0, v0}, Lb0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-interface {p2, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
if-eqz p1, :cond_0
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z
goto :goto_0
:cond_0
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
:goto_0
return-void
.end method
2020-09-16 23:45:23 +00:00
.method public static synthetic edit$default(Landroid/content/SharedPreferences;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
2020-05-17 12:40:10 +00:00
.locals 0
and-int/lit8 p3, p3, 0x1
if-eqz p3, :cond_0
const/4 p1, 0x0
:cond_0
2020-09-16 23:45:23 +00:00
const-string p3, "$this$edit"
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
invoke-static {p0, p3}, Lb0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
const-string p3, "action"
2020-11-05 20:51:11 +00:00
invoke-static {p2, p3}, Lb0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
const-string p3, "editor"
2020-11-05 20:51:11 +00:00
invoke-static {p0, p3}, Lb0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-interface {p2, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
if-eqz p1, :cond_1
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z
goto :goto_0
:cond_1
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
:goto_0
return-void
.end method