Make sure the dashboard is up to date
Bug: 25794089 Change-Id: I65eaa8e14b3c998ec122eaa9fc4dbbe3749c568c
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user