Error handling
- Replace the custom Result type with exceptions; callers catch at the
edge via runCatchingCancellable so cancellation always propagates.
- Log live wallpaper queue failures that were previously ignored.
Architecture
- Add SettingsCoordinator to own settings edits and their scheduling side
effects; ViewModels now only hold UI state.
- Add a domain WallpaperRenderer interface (Android implementation in
data/source) and drop Context from use cases; the service maps
exceptions to messages.
- Share queue dequeuing between static changes and the live wallpaper.
- Merge PreferencesManager into SettingsRepositoryImpl with generated
effect keys (stored key names unchanged).
- Start WallpaperChangeService only through its helpers; merge the
duplicate change actions and share one error path for all actions.
- Fold AlbumRefreshScheduler into WallpaperScheduler.
- Move WallpaperSorter, AppModule and design tokens to their owners.
Cleanup
- Remove unused constants, WorkManager tags, single-value enums and
converters (Room schema unchanged), brand-based texture limits and
single-use design tokens.
- Deduplicate effect controls, interval fields, sort events and
StateFlow sharing.
- Cut trivial tests and comments that restated the code.
Add cancellable imports, preserve inaccessible sources, and update covers and queues atomically. Share folder refresh logic, improve collection controls and accessibility, and simplify repository and selection code.
Validated with 299 unit tests, 29 device tests, lint, and a debug build.
Correct natural-orientation static rendering, make Fill scrolling opt-in, add persistent pause/resume scheduling controls, and remove the unused network-state permission.