Fix/system UI crash#204
Merged
Merged
Conversation
- **Performance & Initialization**:
- **MainActivity**: Migrated `AppDatabase` and `BackupManager` to use lazy initialization within `remember` blocks.
- **Thread Safety**: Offloaded `PackageInfo` retrieval to a background thread using `produceState` and `Dispatchers.IO`.
- **Resource Loading**: Simplified the onboarding welcome page by using static painter resources for the app logo instead of dynamic bitmap conversion.
- **UI & Layout**:
- **Constraints**: Replaced `heightIn(min = ...)` with `defaultMinSize(minHeight = ...)` across multiple components (`OnboardingScreen`, `AppsDetailContent`, `ThemeCreatorScreen`, `CommonCards`, and `InfoScreen`) to improve layout behavior.
- **Widget Previews**: Optimized `WidgetPickerScreen` to load and scale widget preview bitmaps on a background thread with safe dimension constraints, preventing potential UI stutters.
- **Data & Stability**:
- **Thread Safety**: Updated `ThemeViewModel` to use `ConcurrentHashMap` and defensive copies for temporary assets to prevent `ConcurrentModificationException` during theme saving.
- **I/O Optimization**: Refactored `BackupManager` to stream JSON directly from `InputStreamReader` into GSON, improving memory efficiency and removing manual string building.
- **Service & Notifications**:
- **Notification Logic**: Updated `NotificationReaderService` to use `notifyWithCancel` via `ShizukuManager` when updates should alert, ensuring proper notification replacement behavior.
- **Build**: Updated `versionCode` to 26 and `versionName` to `0.5.2` in `app/build.gradle.kts`.
- **UI & UX**:
- Integrated `enableEdgeToEdge()` in `MainActivity` to support modern Android display standards.
- Updated `ChangelogSheet` and `ChangelogHistoryScreen` to reference and display the v0.5.2 release notes.
- **Localization**:
- Added Spanish (Spain and Latin America) translations for the v0.5.2 changelog.
- Documented performance and stability improvements in the changelog, including fixes for Theme Creator crashes, onboarding ANRs, Widget Selector OOM errors, and Backup/Restore JSON parsing refinements.
- **Resources**: Added `changelog_0_5_2` and `title_0_5_2` string resources to `strings.xml` to prepare for the "Performance & Stability Update." - **Changelog Content**: Documented fixes for Theme Creator crashes, Welcome Screen ANRs, Widget Picker OOM errors, Compose layout exceptions, backup import optimizations, and warm start performance improvements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.