Adds screen lock as a suggested activity
Also, fixes a bug where the suggested activity stayed on screen after the component was disabled causing a crash. bug:25246207 bug:26770556 Change-Id: I28d784cdc57e464e49887483690ab514ca3bc46a
This commit is contained in:
@@ -161,6 +161,9 @@ public class DashboardSummary extends InstrumentedFragment
|
||||
List<DashboardCategory> categories =
|
||||
((SettingsActivity) getActivity()).getDashboardCategories();
|
||||
mAdapter.setCategories(categories);
|
||||
|
||||
// recheck to see if any suggestions have been changed.
|
||||
mAdapter.setSuggestions(mSuggestionParser);
|
||||
mDashboard.setAdapter(mAdapter);
|
||||
|
||||
long delta = System.currentTimeMillis() - start;
|
||||
|
Reference in New Issue
Block a user