mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 01:39:22 +02:00
Fix unstable packageNameToCategoryId in AddAppsModel
This commit is contained in:
parent
7a3418ae1d
commit
c03b43452a
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class AddAppsModel(application: Application): AndroidViewModel(application) {
|
||||||
defaultCategory != null && parentCategories.contains(defaultCategory.category.id)
|
defaultCategory != null && parentCategories.contains(defaultCategory.category.id)
|
||||||
val packageNameToCategoryId =
|
val packageNameToCategoryId =
|
||||||
userRelatedData.categoryApps
|
userRelatedData.categoryApps
|
||||||
.filter { it.appSpecifier.deviceId == null }
|
.filter { it.appSpecifier.activityName == null && it.appSpecifier.deviceId == null }
|
||||||
.associateBy { it.appSpecifier.packageName }
|
.associateBy { it.appSpecifier.packageName }
|
||||||
|
|
||||||
installedApps.filter { app ->
|
installedApps.filter { app ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue