Add search-only visibility level to items
This commit is contained in:
+2
-3
@@ -1,14 +1,13 @@
|
||||
package de.mm20.launcher2.badges.providers
|
||||
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.rounded.HourglassBottom
|
||||
import androidx.compose.material.icons.rounded.VisibilityOff
|
||||
import de.mm20.launcher2.badges.Badge
|
||||
import de.mm20.launcher2.badges.BadgeIcon
|
||||
import de.mm20.launcher2.badges.R
|
||||
import de.mm20.launcher2.search.SavableSearchable
|
||||
import de.mm20.launcher2.search.Searchable
|
||||
import de.mm20.launcher2.searchable.SavableSearchableRepository
|
||||
import de.mm20.launcher2.searchable.VisibilityLevel
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.Job
|
||||
@@ -28,7 +27,7 @@ class HiddenItemBadgeProvider(
|
||||
private val scope = CoroutineScope(Job() + Dispatchers.Default)
|
||||
|
||||
private val hiddenItemKeys = searchableRepository.getKeys(
|
||||
hidden = true,
|
||||
maxVisibility = VisibilityLevel.Hidden,
|
||||
limit = 9999,
|
||||
).shareIn(scope, SharingStarted.WhileSubscribed(), 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user