Commit Graph

3 Commits

Author SHA1 Message Date
Mill Chen
2ef3dacad8 Use explicit intent to broadcast grayscale state changed
Query PackageManager for receivers that can handle the intent and send
an explicit intent to these receivers.

Change-Id: I06f500c20ae0a20d689cf0805b6a82247ea55e73
Fix: 118387886
Test: robotests
2019-03-27 18:47:19 -07:00
Mill Chen
6d90cdfea7 Broadcast an intent after turning off Grayscale
Settings will send a broadcast when the user disable Grayscale in
Settings. Also, Settings registers a broadcast receiver to monitor the
status changed of Grayscale.

Bug: 118387886
Test: robotests
Change-Id: I92d1b9adf7a600b4abac943ebbd5a11d02d3d1b8
2019-03-26 11:37:16 -07:00
Mill Chen
88ad3307eb Add Grayscale conditional
Build Grayscale conditional that lets users quickly turn off Grayscale
in Settings if it is on.

Bug: 118387886
Test: visual, robotests
Change-Id: Ibfc2d88f4f3f60f9b0acf084a49084030674de37
2019-03-09 18:46:14 +08:00