commit | 011362d9f15a3acb96b59e833059825a232db133 | [log] [tgz] |
---|---|---|
author | Fan Zhang <zhfan@google.com> | Wed Aug 03 14:47:01 2016 -0700 |
committer | Fan Zhang <zhfan@google.com> | Wed Aug 03 15:50:39 2016 -0700 |
tree | 90ca4ec3b63c67d6ece6e9cff3fb28a5e942b9c5 | |
parent | 2b0bd66d5b660b38cf0da66dad1fa832476f92ce [diff] |
Update summary correctly in Settings dashboard. Bug: 30490325 SummaryLoader needs DashboardCategory to update summary and it currently ask for it from DashboardAdapter. But DashboardCategory is not always available in DashboardAdapter. When SummaryLoader wants to get category from adapter before adapter is ready, it won't have it, causing summary to appear blank sometimes. The fix is to get category from data source directly. Change-Id: I9d7f676954d1cece42d6e03748ab7aa35357f8b7