Fix bad preference class setting.

This commit is contained in:
Alex Hart
2021-05-13 13:14:36 -03:00
committed by Greyson Parrelli
parent b41989de03
commit 53e1da0f43
2 changed files with 6 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ class NotificationsSettingsViewModel(private val sharedPreferences: SharedPrefer
}
fun setMessageNotificationPriority(priority: Int) {
sharedPreferences.edit().putInt(TextSecurePreferences.NOTIFICATION_PRIORITY_PREF, priority).apply()
sharedPreferences.edit().putString(TextSecurePreferences.NOTIFICATION_PRIORITY_PREF, priority.toString()).apply()
store.update { getState() }
}