fixup: Infinite loop in PreferenceUtils after adopting DI
All checks were successful
/ build-debug (push) Successful in 3m48s

This commit is contained in:
Peter Cai 2024-03-04 19:35:17 -05:00
parent 1a69c5294b
commit 6c2b1675bd

View file

@ -14,7 +14,7 @@ import kotlinx.coroutines.flow.map
private val Context.dataStore: DataStore<Preferences> by preferencesDataStore(name = "prefs")
val Context.preferenceRepository: PreferenceRepository
get() = (applicationContext as OpenEuiccApplication).preferenceRepository
get() = (applicationContext as OpenEuiccApplication).appContainer.preferenceRepository
val Fragment.preferenceRepository: PreferenceRepository
get() = requireContext().preferenceRepository