mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Add Space
This commit is contained in:
@@ -92,6 +92,7 @@ class LawnchairAppSearchAlgorithm(context: Context) : LawnchairSearchAlgorithm(c
|
||||
val shortcuts = singleAppResult?.let { searchUtils.getShortcuts(it, context) }
|
||||
if (shortcuts != null) {
|
||||
if (shortcuts.isNotEmpty()) {
|
||||
searchTargets.add(searchTargetFactory.createHeaderTarget(SPACE))
|
||||
singleAppResult.let { searchTargets.add(searchTargetFactory.createAppSearchTarget(it, true)) }
|
||||
searchTargets.addAll(shortcuts.map(searchTargetFactory::createShortcutTarget))
|
||||
}
|
||||
|
||||
@@ -229,6 +229,7 @@ class LawnchairLocalSearchAlgorithm(context: Context) : LawnchairSearchAlgorithm
|
||||
val shortcuts = singleAppResult?.let { searchUtils.getShortcuts(it, context) }
|
||||
if (shortcuts != null) {
|
||||
if (shortcuts.isNotEmpty()) {
|
||||
searchTargets.add(searchTargetFactory.createHeaderTarget(SPACE))
|
||||
singleAppResult.let { searchTargets.add(searchTargetFactory.createAppSearchTarget(it, true)) }
|
||||
searchTargets.addAll(shortcuts.map(searchTargetFactory::createShortcutTarget))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user