Refresh the dashboard UI when swiping away the only suggestion.
In the new suggestion UI, the suggestions are listed inside the suggestion container instead of individual dashboard items. When there is only a single suggestion shown, and that is being swiped away, the actual list for the suggestions will handle the swipe and remove that list item from the list. However, the top level container will remain until next time the dashboard list is being refreshed. Explicitly set the suggestions to null to force refreshing of the dashboard UI. Change-Id: I37f8c8f5a813a5c56f4f2f46103fdbb66ce97fcd Fix: 62639824 Test: make RunSettingsRoboTests
This commit is contained in:
@@ -249,6 +249,7 @@ public class DashboardSummary extends InstrumentedFragment
|
||||
|
||||
@Override
|
||||
public void onSuggestionDismissed(Tile suggestion) {
|
||||
mAdapter.onSuggestionDismissed();
|
||||
// Refresh the UI to pick up suggestions that can now be shown because, say, a higher
|
||||
// priority suggestion has been dismissed, or an exclusive suggestion category is emptied.
|
||||
rebuildUI();
|
||||
|
Reference in New Issue
Block a user