komikku/app
Cuong-Tran 4c21f019c0
chore: Refactor selection state management and improve performance across various screens (#1607)
* chore: Refactor selection state management and improve performance across various screens

*   **MigrateMangaScreen**: Refactor state management to use a `Set<Long>` of IDs for selection instead of a list of wrapper items.
*   **LibraryUpdateErrorScreen**: Simplify `onErrorSelected` signature by removing the unused `userSelected` parameter and clean up related UI components.
*   **Performance**: Use `remember(state.selection)` in `MigrateMangaScreen` for efficient selection status lookups.
*   **Code Quality**: Fix minor typos (e.g., `inbetweenItem` to `inBetweenItem`) and optimize imports.

* Refactor selection logic to prevent redundant state updates

* Move early exit checks for item selection status outside or to the beginning of state update blocks to avoid unnecessary recompositions.
* Improve safety and correctness of item selection by returning early from state updates when an item index is not found.
* Standardize selection checks across `HistoryScreenModel`, `LibraryUpdateErrorScreenModel`, `MigrateMangaScreenModel`, `UpdatesScreenModel`, and `MangaScreenModel`.

* update selection when migration list got updated

* Update state management to reset selection and loading status on fetch failure
2026-05-08 12:41:46 +07:00
..
src chore: Refactor selection state management and improve performance across various screens (#1607) 2026-05-08 12:41:46 +07:00
build.gradle.kts chore(deps): Automate app shortcuts with shortcut-helper plugin 2026-02-24 12:11:58 +07:00
proguard-android-optimize.txt Remove unused rxandroid dependency 2023-09-03 23:32:59 -04:00
proguard-rules.pro fix(reader): gifs not animating (#1105) 2025-09-04 13:07:08 +07:00
shortcuts.xml chore(deps): Automate app shortcuts with shortcut-helper plugin 2026-02-24 12:11:58 +07:00