forked from PeterCxy/OpenEUICC
fixup: Infinite loop in PreferenceUtils after adopting DI
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")
|
private val Context.dataStore: DataStore<Preferences> by preferencesDataStore(name = "prefs")
|
||||||
|
|
||||||
val Context.preferenceRepository: PreferenceRepository
|
val Context.preferenceRepository: PreferenceRepository
|
||||||
get() = (applicationContext as OpenEuiccApplication).preferenceRepository
|
get() = (applicationContext as OpenEuiccApplication).appContainer.preferenceRepository
|
||||||
|
|
||||||
val Fragment.preferenceRepository: PreferenceRepository
|
val Fragment.preferenceRepository: PreferenceRepository
|
||||||
get() = requireContext().preferenceRepository
|
get() = requireContext().preferenceRepository
|
||||||
|
|
Loading…
Reference in a new issue