Convert last used source preference to flow

This commit is contained in:
arkon
2020-05-24 18:10:57 -04:00
parent 3d1dec4c05
commit 7cf26363c8
2 changed files with 26 additions and 11 deletions

View File

@@ -137,7 +137,7 @@ class PreferencesHelper(val context: Context) {
fun autoUpdateTrack() = prefs.getBoolean(Keys.autoUpdateTrack, true)
fun lastUsedCatalogueSource() = rxPrefs.getLong(Keys.lastUsedCatalogueSource, -1)
fun lastUsedCatalogueSource() = flowPrefs.getLong(Keys.lastUsedCatalogueSource, -1)
fun lastUsedCategory() = flowPrefs.getInt(Keys.lastUsedCategory, 0)