fixup: Infinite loop in PreferenceUtils after adopting DI
All checks were successful
/ build-debug (push) Successful in 3m48s
All checks were successful
/ build-debug (push) Successful in 3m48s
This commit is contained in:
parent
1a69c5294b
commit
6c2b1675bd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue