Skip to content

Commit 3cd0ef7

Browse files
committed
Replace .commit() with .apply() in PrefUtils.java
Fix according to issue google#20
1 parent 0a90bf8 commit 3cd0ef7

File tree

1 file changed

+1
-1
lines changed
  • android/src/main/java/com/google/samples/apps/iosched/util

1 file changed

+1
-1
lines changed

android/src/main/java/com/google/samples/apps/iosched/util/PrefUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public static void markUserRefusedSignIn(final Context context) {
161161

162162
public static void markUserRefusedSignIn(final Context context, final boolean refused) {
163163
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
164-
sp.edit().putBoolean(PREF_USER_REFUSED_SIGN_IN, refused).commit();
164+
sp.edit().putBoolean(PREF_USER_REFUSED_SIGN_IN, refused).apply();
165165
}
166166

167167
public static boolean hasUserRefusedSignIn(final Context context) {

0 commit comments

Comments
 (0)