Merge "Only show running apps for the current user+profiles" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e2fbef15eb
@@ -322,6 +322,7 @@ class FgsManagerController @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val addedPackages = runningServiceTokens.keys.filter {
|
val addedPackages = runningServiceTokens.keys.filter {
|
||||||
|
currentProfileIds.contains(it.userId) &&
|
||||||
it.uiControl != UIControl.HIDE_ENTRY && runningApps[it]?.stopped != true
|
it.uiControl != UIControl.HIDE_ENTRY && runningApps[it]?.stopped != true
|
||||||
}
|
}
|
||||||
val removedPackages = runningApps.keys.filter { !runningServiceTokens.containsKey(it) }
|
val removedPackages = runningApps.keys.filter { !runningServiceTokens.containsKey(it) }
|
||||||
|
|||||||
Reference in New Issue
Block a user