mirror of
https://github.com/jrpie/Launcher.git
synced 2025-06-28 03:45:36 +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 {
|
} else {
|
||||||
val r: MutableSet<AbstractDetailedAppInfo> = hashSetOf()
|
val r: MutableSet<AbstractDetailedAppInfo> = hashSetOf()
|
||||||
val normalizedQuery: String = normalize(query)
|
val normalizedQuery: String = normalize(query)
|
||||||
val subsequentResult: MutableList<AbstractDetailedAppInfo> = mutableListOf();
|
val subsequentResult: MutableList<AbstractDetailedAppInfo> = mutableListOf()
|
||||||
val occurrences: MutableMap<AbstractDetailedAppInfo, Int> = mutableMapOf();
|
val occurrences: MutableMap<AbstractDetailedAppInfo, Int> = mutableMapOf()
|
||||||
for (item in apps) {
|
for (item in apps) {
|
||||||
val itemLabel: String = normalize(item.getCustomLabel(context))
|
val itemLabel: String = normalize(item.getCustomLabel(context))
|
||||||
|
|
||||||
if (itemLabel.startsWith(normalizedQuery)) {
|
if (itemLabel.startsWith(normalizedQuery)) {
|
||||||
r.add(item);
|
r.add(item)
|
||||||
} else if (itemLabel.contains(normalizedQuery)) {
|
} else if (itemLabel.contains(normalizedQuery)) {
|
||||||
r.add(item)
|
r.add(item)
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ class AppFilter(
|
||||||
var i = 0
|
var i = 0
|
||||||
for (char in text) {
|
for (char in text) {
|
||||||
if (char != search[i]) continue
|
if (char != search[i]) continue
|
||||||
i++;
|
i++
|
||||||
if (i == search.length) {
|
if (i == search.length) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue