Skip to content

Fix/system UI crash#204

Merged
D4vidDf merged 3 commits into
masterfrom
fix/system-ui-crash
Jun 8, 2026
Merged

Fix/system UI crash#204
D4vidDf merged 3 commits into
masterfrom
fix/system-ui-crash

Conversation

@D4vidDf

@D4vidDf D4vidDf commented Jun 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

D4vidDf added 3 commits June 8, 2026 15:00
- **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.
@D4vidDf D4vidDf merged commit a0af24a into master Jun 8, 2026
@D4vidDf D4vidDf deleted the fix/system-ui-crash branch June 8, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant