Skip to content

Commit

Permalink
Apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperDragonXD committed Jun 22, 2024
1 parent 72f058f commit 0f2f8be
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,36 +1,26 @@
package app.lawnchair.search.algorithms

import android.content.Context
import android.content.pm.ShortcutInfo
import android.os.Handler
import app.lawnchair.launcher
import app.lawnchair.preferences.PreferenceManager
import app.lawnchair.preferences2.PreferenceManager2
import app.lawnchair.search.LawnchairSearchAdapterProvider
import app.lawnchair.search.adapter.GenerateSearchTarget
import app.lawnchair.search.adapter.SPACE
import app.lawnchair.search.adapter.SearchTargetCompat
import app.lawnchair.search.adapter.createSearchTarget
import app.lawnchair.ui.preferences.components.HiddenAppsInSearch
import app.lawnchair.util.isDefaultLauncher
import com.android.launcher3.LauncherAppState
import com.android.launcher3.allapps.BaseAllAppsAdapter
import com.android.launcher3.model.AllAppsList
import com.android.launcher3.model.BaseModelUpdateTask
import com.android.launcher3.model.BgDataModel
import com.android.launcher3.model.data.AppInfo
import com.android.launcher3.popup.PopupPopulator
import com.android.launcher3.search.SearchCallback
import com.android.launcher3.search.StringMatcherUtility
import com.android.launcher3.shortcuts.ShortcutRequest
import com.android.launcher3.util.Executors
import com.patrykmichalik.opto.core.onEach
import java.util.Locale
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import me.xdrop.fuzzywuzzy.FuzzySearch
import me.xdrop.fuzzywuzzy.algorithms.WeightedRatio

class LawnchairAppSearchAlgorithm(context: Context) : LawnchairSearchAlgorithm(context) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package app.lawnchair.search.algorithms

import android.content.Context
import android.content.pm.ShortcutInfo
import android.os.Handler
import app.lawnchair.launcher
import app.lawnchair.preferences.PreferenceManager
import app.lawnchair.preferences2.PreferenceManager2
import app.lawnchair.search.LawnchairSearchAdapterProvider
Expand Down Expand Up @@ -32,7 +30,6 @@ import app.lawnchair.search.algorithms.data.findSettingsByNameAndAction
import app.lawnchair.search.algorithms.data.getRecentKeyword
import app.lawnchair.search.algorithms.data.getStartPageSuggestions
import app.lawnchair.search.algorithms.data.queryFilesInMediaStore
import app.lawnchair.ui.preferences.components.HiddenAppsInSearch
import app.lawnchair.util.checkAndRequestFilesPermission
import app.lawnchair.util.isDefaultLauncher
import app.lawnchair.util.requestContactPermissionGranted
Expand All @@ -43,22 +40,16 @@ import com.android.launcher3.model.AllAppsList
import com.android.launcher3.model.BaseModelUpdateTask
import com.android.launcher3.model.BgDataModel
import com.android.launcher3.model.data.AppInfo
import com.android.launcher3.popup.PopupPopulator
import com.android.launcher3.search.SearchCallback
import com.android.launcher3.search.StringMatcherUtility
import com.android.launcher3.shortcuts.ShortcutRequest
import com.android.launcher3.util.Executors
import com.patrykmichalik.opto.core.onEach
import java.util.Locale
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.TimeoutCancellationException
import kotlinx.coroutines.async
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withTimeoutOrNull
import me.xdrop.fuzzywuzzy.FuzzySearch
import me.xdrop.fuzzywuzzy.algorithms.WeightedRatio

class LawnchairLocalSearchAlgorithm(context: Context) : LawnchairSearchAlgorithm(context) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SearchUtils(
fun Sequence<AppInfo>.filterHiddenApps(
query: String,
hiddenApps: Set<String>,
hiddenAppsInSearch: String
hiddenAppsInSearch: String,
): Sequence<AppInfo> {
return when (hiddenAppsInSearch) {
HiddenAppsInSearch.ALWAYS -> {
Expand Down

0 comments on commit 0f2f8be

Please sign in to comment.