Commit 6ced438
committed
Fix: Fix keyboard handling and bottom margin
This commit introduces two main improvements to the App Drawer:
1. **Adjusts for Keyboard (IME):** The bottom margin of the `menuView` is now correctly adjusted when the on-screen keyboard is shown or hidden. This prevents the menu from being obscured by the keyboard. The previous implementation, which adjusted the padding of the RecyclerViews, has been removed.
2. **Improves Keyboard Display Logic:** The method used to show the soft keyboard has been updated from the deprecated `SHOW_FORCED` to `SHOW_IMPLICIT`. This is a more modern and recommended approach for programmatically displaying the keyboard. A local `prefs` variable was also introduced to avoid multiple lookups.1 parent f76aaf9 commit 6ced438
File tree
1 file changed
+11
-7
lines changed- app/src/main/java/com/github/codeworkscreativehub/mlauncher/ui
1 file changed
+11
-7
lines changedLines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
733 | 736 | | |
734 | 737 | | |
735 | 738 | | |
736 | | - | |
737 | | - | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
738 | 742 | | |
739 | 743 | | |
740 | 744 | | |
| 745 | + | |
741 | 746 | | |
742 | 747 | | |
743 | 748 | | |
744 | | - | |
745 | | - | |
| 749 | + | |
746 | 750 | | |
747 | 751 | | |
748 | 752 | | |
| |||
0 commit comments