Commit fe592f7
committed
feat(search): Prioritize app aliases for none fuzzy search
This commit enhances the fuzzy search logic to prioritize user-defined app aliases over the default app labels. The `FuzzyFinder.scoreApp` function now accepts a `Context` to access `Prefs` and retrieve any available alias for an app. If an alias is found, it is used for the search scoring; otherwise, the default `activityLabel` is used.
This change ensures that search results more accurately reflect user-customized app names, improving the overall user experience of the app search functionality.1 parent 31bb3b6 commit fe592f7
File tree
1 file changed
+5
-1
lines changed- app/src/main/java/com/github/codeworkscreativehub/mlauncher/ui/adapter
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
| |||
0 commit comments