Merge "Register statusbar actions only if CentralSurfaces is available" into tm-qpr-dev am: c0db1ff3d1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20437156

Change-Id: I5f1926b9c13a89128e1abd1686e343dd665011e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Toshiki Kikuchi
2022-11-15 20:08:54 +00:00
committed by Automerger Merge Worker

View File

@@ -291,8 +291,11 @@ public class SystemActions implements CoreStartable {
mA11yManager.registerSystemAction(actionBack, SYSTEM_ACTION_ID_BACK);
mA11yManager.registerSystemAction(actionHome, SYSTEM_ACTION_ID_HOME);
mA11yManager.registerSystemAction(actionRecents, SYSTEM_ACTION_ID_RECENTS);
mA11yManager.registerSystemAction(actionNotifications, SYSTEM_ACTION_ID_NOTIFICATIONS);
mA11yManager.registerSystemAction(actionQuickSettings, SYSTEM_ACTION_ID_QUICK_SETTINGS);
if (mCentralSurfacesOptionalLazy.get().isPresent()) {
// These two actions require the CentralSurfaces instance.
mA11yManager.registerSystemAction(actionNotifications, SYSTEM_ACTION_ID_NOTIFICATIONS);
mA11yManager.registerSystemAction(actionQuickSettings, SYSTEM_ACTION_ID_QUICK_SETTINGS);
}
mA11yManager.registerSystemAction(actionPowerDialog, SYSTEM_ACTION_ID_POWER_DIALOG);
mA11yManager.registerSystemAction(actionLockScreen, SYSTEM_ACTION_ID_LOCK_SCREEN);
mA11yManager.registerSystemAction(actionTakeScreenshot, SYSTEM_ACTION_ID_TAKE_SCREENSHOT);