summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Toshiki Kikuchi <toshikikikuchi@google.com> 2022-11-02 14:15:12 +0900
committer Toshiki Kikuchi <toshikikikuchi@google.com> 2022-11-11 09:49:06 +0000
commit81db8e484dd7c8b3efe1fc618158d0363353f78d (patch)
treed270191f8eaeb0fc0b2e05a042fee4ba70a5bf5f /libs/androidfw/StringPool.cpp
parent2e38249906b5b1b696836eff7cb869d770c33e6a (diff)
Register statusbar actions only if CentralSurfaces is available
This CL changes SystemActions to register status bar-related actions only if CentralSurfaces is available. Because S_A_ID_NOTIFICATIONS and S_A_ID_QUICK_SETTINGS expect the CentralSurfaces instance in each handler (i.e. handleNotifications() and handleQuickSettings()), but CentralSurfaces is optional and some vendors (e.g. ARC) don’t provide it. Therefore, these two actions shouldn’t be registered when CentralSurfaces is not provided via DI. Bug: 255544050 Test: atest android.app.usage.cts.UsageStatsTest#testNotificationSee on ARC Change-Id: I592ca34d8081e4d76b9b7049359b2145f22f1dad
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions