UiPrefsUnitsOverrideSource
class UiPrefsUnitsOverrideSource(uiPrefs: UiPrefs, applicationCoroutineScope: ApplicationCoroutineScope) : UnitsOverrideSource(source)
Adapts the stored units preference to the UnitsOverrideSource that core:common's unit provider consumes.
The indirection exists for the dependency direction: the provider lives in core:common, which the preferences modules depend on, so the provider cannot see UiPrefs itself. The eager collector runs in the application scope, whose owner cancels it with the application — this class owns no scope of its own.