- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
33 lines
978 B
Java
33 lines
978 B
Java
package androidx.core.content;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.content.SharedPreferences;
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class SharedPreferencesKt {
|
|
@SuppressLint({"ApplySharedPref"})
|
|
public static final void edit(SharedPreferences sharedPreferences, boolean z, Function1 function1) {
|
|
SharedPreferences.Editor edit = sharedPreferences.edit();
|
|
function1.invoke(edit);
|
|
if (z) {
|
|
edit.commit();
|
|
} else {
|
|
edit.apply();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void edit$default(SharedPreferences sharedPreferences, boolean z, Function1 function1, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
z = false;
|
|
}
|
|
SharedPreferences.Editor edit = sharedPreferences.edit();
|
|
function1.invoke(edit);
|
|
if (z) {
|
|
edit.commit();
|
|
} else {
|
|
edit.apply();
|
|
}
|
|
}
|
|
}
|