Make sure the dashboard is up to date

Bug: 25794089
Change-Id: I65eaa8e14b3c998ec122eaa9fc4dbbe3749c568c
This commit is contained in:
Jason Monk
2015-11-30 15:37:31 -05:00
parent 73df1a9894
commit 8c4ca41d25
3 changed files with 18 additions and 2 deletions

View File

@@ -133,6 +133,13 @@ public class DashboardSummary extends InstrumentedFragment {
}
long start = System.currentTimeMillis();
// TODO: Cache summaries from old categories somehow.
List<DashboardCategory> categories =
((SettingsActivity) getActivity()).getDashboardCategories(true);
boolean showingAll = mAdapter != null && mAdapter.isShowingAll();
mAdapter = new DashboardAdapter(getContext(), categories);
mSummaryLoader.setAdapter(mAdapter);
mAdapter.setShowingAll(showingAll);
mDashboard.setAdapter(mAdapter);
long delta = System.currentTimeMillis() - start;