Entirely remove apps from favorites when their activity cannot be launched

This commit is contained in:
MM20
2022-07-09 20:13:55 +02:00
parent b58e0d09ce
commit 8bbf8045ec
2 changed files with 10 additions and 1 deletions
@@ -68,7 +68,7 @@ abstract class SearchableItemVM(
favoritesRepository.incrementLaunchCounter(searchable)
return true
} else if (searchable is Application) {
favoritesRepository.unpinItem(searchable)
favoritesRepository.remove(searchable)
}
return false
}