mirror of
https://github.com/jrpie/Launcher.git
synced 2025-06-28 20:05:30 +02:00
Remove semicolons
This commit is contained in:
parent
c5eb0664c0
commit
51cc55af98
1 changed files with 4 additions and 4 deletions
|
@ -66,13 +66,13 @@ class AppFilter(
|
|||
} else {
|
||||
val r: MutableSet<AbstractDetailedAppInfo> = hashSetOf()
|
||||
val normalizedQuery: String = normalize(query)
|
||||
val subsequentResult: MutableList<AbstractDetailedAppInfo> = mutableListOf();
|
||||
val occurrences: MutableMap<AbstractDetailedAppInfo, Int> = mutableMapOf();
|
||||
val subsequentResult: MutableList<AbstractDetailedAppInfo> = mutableListOf()
|
||||
val occurrences: MutableMap<AbstractDetailedAppInfo, Int> = mutableMapOf()
|
||||
for (item in apps) {
|
||||
val itemLabel: String = normalize(item.getCustomLabel(context))
|
||||
|
||||
if (itemLabel.startsWith(normalizedQuery)) {
|
||||
r.add(item);
|
||||
r.add(item)
|
||||
} else if (itemLabel.contains(normalizedQuery)) {
|
||||
r.add(item)
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ class AppFilter(
|
|||
var i = 0
|
||||
for (char in text) {
|
||||
if (char != search[i]) continue
|
||||
i++;
|
||||
i++
|
||||
if (i == search.length) {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue