fix NPE in dateFormat (#2549)

Bug #2548 fix NPE in dateFormat pref
This commit is contained in:
MCAxiaz 2020-01-29 04:23:26 -08:00 committed by Jay
parent 39dc945f86
commit 3bb1c9efa7

View File

@ -152,7 +152,7 @@ class PreferencesHelper(val context: Context) {
fun backupsDirectory() = rxPrefs.getString(Keys.backupDirectory, defaultBackupDir.toString())
fun dateFormat() = rxPrefs.getObject(Keys.dateFormat, DateFormatConverter())
fun dateFormat() = rxPrefs.getObject(Keys.dateFormat, DateFormat.getDateInstance(DateFormat.SHORT), DateFormatConverter())
fun downloadsDirectory() = rxPrefs.getString(Keys.downloadsDirectory, defaultDownloadsDir.toString())