OSDN Git Service

Send a broadcast when turning grayscale off
authorMill Chen <millchen@google.com>
Sat, 30 Mar 2019 06:44:57 +0000 (23:44 -0700)
committerMill Chen <millchen@google.com>
Mon, 1 Apr 2019 18:11:47 +0000 (11:11 -0700)
commit526fb9f8fbe1e94ac5d4048e9c907c0c13728354
tree1f1e37cbe6bdea35086701aebe794885f39f0fa5
parent77d8cff015c8a8677cab7752fe5bed5462cd790d
Send a broadcast when turning grayscale off

When users turn grayscale off in Settings, Settings will send an intent
to receivers who have requested the CONTROL_DISPLAY_COLOR_TRANSFORMS
permission. We also specify FLAG_RECIEVER_INCLUDE_BACKGROUND to make
sure that the intent could be sent to manifest receivers.

Bug: 118387886
Test: robotests
Change-Id: Ib0c959e72dd4068014951347df35409790c77ab5
src/com/android/settings/homepage/contextualcards/conditional/GrayscaleConditionController.java