[Desktop Mode] Show indicators under Taskbar app icons for running apps
In Desktop Mode we show running Desktop apps in the Taskbar. With this change we also show an indicator under the app icon for each such running app. Bug: 332504528 Test: manual Test: DesktopTaskbarRunningAppsControllerTest Flag: ACONFIG com.android.window.flags.Flags.enableDesktopWindowingTaskbarRunningApps DEVELOPMENT Change-Id: If0906dab8ad0bd8a78d93a4e99db47550e763bed
This commit is contained in:
1 parent
4e741082dc
commit
52a8b7e24b
11 files changed
+124
-4
No files matched your search
@@ -80,6 +80,13 @@ class DesktopTaskbarRunningAppsController(
|
||||
return newHotseatItemInfos.toTypedArray()
|
||||
}
|
||||
|
||||
override fun getRunningApps(): Set<String> {
|
||||
if (!isInDesktopMode) {
|
||||
return emptySet()
|
||||
}
|
||||
return allRunningDesktopAppInfos?.mapNotNull { it.targetPackage }?.toSet() ?: emptySet()
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public override fun updateRunningApps(hotseatItems: SparseArray<ItemInfo>?) {
|
||||
if (!isInDesktopMode) {
|
||||
|
||||
Reference in new issue
Block a user