Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Switch to apply instead of commit for shared preferences
Browse files Browse the repository at this point in the history
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
  • Loading branch information
theimpulson committed Jan 15, 2024
1 parent f9fb40a commit 4b0c0b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class PushNotificationService : FirebaseMessagingService(),

override fun onNewToken(token: String) {
super.onNewToken(token)
sharedPreferences.edit(true) { putString(FCM_TOKEN, token) }
sharedPreferences.edit { putString(FCM_TOKEN, token) }
registerPushNotifications()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ class LoginScreenViewModel @Inject constructor(
}

fun saveAccessToken() {
sharedPreferences.edit(true) { putString(ACCESS_TOKEN, authState.accessToken) }
sharedPreferences.edit { putString(ACCESS_TOKEN, authState.accessToken) }
}
}

0 comments on commit 4b0c0b7

Please sign in to comment.