Commit 7b85d33
committed
fix(ui): Prevent index out of bounds in AppDrawerAdapter
This commit addresses a potential crash in `AppDrawerAdapter` by adding a check to ensure that the `position` is within the bounds of `appFilteredList` before accessing it in `onBindViewHolder`.
Additionally, the initialization of `BiometricHelper` has been moved from `onBindViewHolder` to `onCreateViewHolder` to avoid redundant object creation.
Signed-off-by: CreativeCodeCat <[email protected]>1 parent 36f97c8 commit 7b85d33
File tree
1 file changed
+4
-6
lines changed- app/src/main/java/com/github/droidworksstudio/mlauncher/ui
1 file changed
+4
-6
lines changedLines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
78 | 77 | | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
| |||
0 commit comments