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

123 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 21:45:36 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
if-eqz p0, :cond_2
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
if-eqz p2, :cond_1
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-09-16 21:45:36 +00:00
invoke-static {p0, v0}, Lk0/n/c/h;->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
2020-09-16 21:45:36 +00:00
:cond_1
const-string p0, "action"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_2
const-string p0, "$this$edit"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v0
2020-05-17 12:40:10 +00:00
.end method
2020-09-16 21:45:36 +00:00
.method public static 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 21:45:36 +00:00
const/4 p3, 0x0
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
if-eqz p0, :cond_3
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
if-eqz p2, :cond_2
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-09-16 21:45:36 +00:00
invoke-static {p0, p3}, Lk0/n/c/h;->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
2020-09-16 21:45:36 +00:00
:cond_2
const-string p0, "action"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw p3
:cond_3
const-string p0, "$this$edit"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw p3
2020-05-17 12:40:10 +00:00
.end method