OSDN Git Service

Also tint the settings icon in DashboardAdapter.setCategory().
authorDoris Ling <dling@google.com>
Wed, 28 Jun 2017 23:12:38 +0000 (16:12 -0700)
committerDoris Ling <dling@google.com>
Wed, 28 Jun 2017 23:12:38 +0000 (16:12 -0700)
commit067122a8e4eaf7942835b07c2838b356142bb886
tree3c9d295882d6447c75c729f566837c2fb97759af
parent051fb19dd402ff1e112b4ff9237f8497e5bd0588
Also tint the settings icon in DashboardAdapter.setCategory().

When suggestion loader takes longer time to complete, we will first show
the dashboard with just the categories, and refresh the UI when the
suggestion is ready. However, we only tint the icon when we update both
the categories and suggestions, and hence in some case, some tile
results with icon not being tinted.

Change-Id: I023d50655349731b03c7d7aff153d2cbbd8c63e0
Fix: 37456962
Test: make RunSettingsRoboTests
src/com/android/settings/dashboard/DashboardAdapter.java
tests/robotests/src/com/android/settings/dashboard/DashboardAdapterTest.java