Commit ed61269
committed
feat(search): Prioritize app aliases for fuzzy search only
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 3aa41c6 commit ed61269
File tree
2 files changed
+7
-3
lines changed- app/src/main/java/com/github/codeworkscreativehub
- fuzzywuzzy
- mlauncher/ui/adapter
2 files changed
+7
-3
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
0 commit comments