Commit d04d371
committed
Fix(AppDrawer): Resolve icon loading and sorting bugs
This commit addresses two key issues in the app drawer:
1. **Fixes an icon loading race condition:**
* Previously, due to view recycling, fast scrolling could cause incorrect icons to be displayed for apps.
* This is resolved by tagging each app view with its package name. An icon is now only applied if the view's tag matches the package name for which the icon was loaded, preventing mismatched icons.
2. **Corrects app list sorting with aliases:**
* The app drawer now correctly sorts applications based on their assigned alias, not just their original label.
* The scrollbar index has also been updated to use aliases, ensuring that tapping a letter in the scrollbar navigates to the correct position in the alphabetized list.
Additionally, a minor bug in the app renaming logic has been fixed.1 parent d7345d0 commit d04d371
File tree
2 files changed
+27
-11
lines changed- app/src/main/java/com/github/codeworkscreativehub/mlauncher
- ui/adapter
2 files changed
+27
-11
lines changedLines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
634 | 637 | | |
635 | | - | |
| 638 | + | |
636 | 639 | | |
637 | | - | |
| 640 | + | |
638 | 641 | | |
639 | 642 | | |
640 | 643 | | |
641 | 644 | | |
642 | 645 | | |
643 | 646 | | |
644 | 647 | | |
645 | | - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
646 | 652 | | |
647 | 653 | | |
648 | 654 | | |
| |||
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
477 | 480 | | |
478 | 481 | | |
479 | 482 | | |
| |||
485 | 488 | | |
486 | 489 | | |
487 | 490 | | |
| 491 | + | |
| 492 | + | |
488 | 493 | | |
489 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
490 | 500 | | |
491 | 501 | | |
492 | 502 | | |
| |||
0 commit comments