We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a90bf8 commit 3cd0ef7Copy full SHA for 3cd0ef7
android/src/main/java/com/google/samples/apps/iosched/util/PrefUtils.java
@@ -161,7 +161,7 @@ public static void markUserRefusedSignIn(final Context context) {
161
162
public static void markUserRefusedSignIn(final Context context, final boolean refused) {
163
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
164
- sp.edit().putBoolean(PREF_USER_REFUSED_SIGN_IN, refused).commit();
+ sp.edit().putBoolean(PREF_USER_REFUSED_SIGN_IN, refused).apply();
165
}
166
167
public static boolean hasUserRefusedSignIn(final Context context) {
0 commit comments