Merge "Only show running apps for the current user+profiles" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-06-23 19:33:11 +00:00
committed by Android (Google) Code Review

View File

@@ -322,7 +322,8 @@ class FgsManagerController @Inject constructor(
}
val addedPackages = runningServiceTokens.keys.filter {
it.uiControl != UIControl.HIDE_ENTRY && runningApps[it]?.stopped != true
currentProfileIds.contains(it.userId) &&
it.uiControl != UIControl.HIDE_ENTRY && runningApps[it]?.stopped != true
}
val removedPackages = runningApps.keys.filter { !runningServiceTokens.containsKey(it) }