Migrate the rest of the EH prefreches to Flow Prefrences

This commit is contained in:
Jobobby04
2020-05-17 17:10:42 -04:00
parent 7d2ded5944
commit 5271abbd1f
2 changed files with 4 additions and 4 deletions
@@ -33,8 +33,8 @@ fun <T> Preference<T>.asImmediateFlow(block: (value: T) -> Unit): Flow<T> {
@OptIn(ExperimentalCoroutinesApi::class)
class PreferencesHelper(val context: Context) {
val prefs = PreferenceManager.getDefaultSharedPreferences(context)
val rxPrefs = RxSharedPreferences.create(prefs)
private val prefs = PreferenceManager.getDefaultSharedPreferences(context)
private val rxPrefs = RxSharedPreferences.create(prefs)
val flowPrefs = FlowSharedPreferences(prefs)
private val defaultDownloadsDir = Uri.fromFile(