Skip to content
Commit 81db8e48 authored by Toshiki Kikuchi's avatar Toshiki Kikuchi
Browse files

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
parent 2e382499
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment