OSDN Git Service

Check the tintable metadata before tinting tile icon.
authorDoris Ling <dling@google.com>
Mon, 17 Jul 2017 22:04:36 +0000 (15:04 -0700)
committerDoris Ling <dling@google.com>
Tue, 18 Jul 2017 17:39:47 +0000 (10:39 -0700)
commit7087fd92a18b46f9b76fdb2a4e2bb62b5ae9fd0d
tree6120a5eece95d8a2175e05addd466ed5c7a5fb94
parentd88a7681528a266aa9783013b9d21bd0d2ddc8a9
Check the tintable metadata before tinting tile icon.

When determining whether to tint the tile icon, first check whether the
tintable metadata set for the tile. If no metadata set, will then follow
the default logic that tint the tile icon if it is not coming from the
Settings package.

Change-Id: Idf0863e0c6ab063aeaa6d013fa620508ced31fdb
Fix: 62473193
Test: make RunSettingsRoboTests
src/com/android/settings/dashboard/DashboardFragment.java
tests/robotests/src/com/android/settings/dashboard/DashboardFragmentTest.java