Merge "Fix crash when dismissing suggestions." into oc-mr1-dev am: e923d649c0
am: 49af0bd8ae
Change-Id: I840bb485a345e065e2f7409240f9c0092fc3a870
This commit is contained in:
@@ -211,8 +211,7 @@ public class DashboardAdapter extends RecyclerView.Adapter<DashboardAdapter.Dash
|
||||
.build();
|
||||
notifyDashboardDataChanged(prevData);
|
||||
} else {
|
||||
suggestions.remove(suggestion);
|
||||
mSuggestionAdapter.notifyDataSetChanged();
|
||||
mSuggestionAdapter.removeSuggestion(suggestion);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -134,4 +134,8 @@ public class SuggestionAdapter extends RecyclerView.Adapter<DashboardItemHolder>
|
||||
return null;
|
||||
}
|
||||
|
||||
public void removeSuggestion(Tile suggestion) {
|
||||
mSuggestions.remove(suggestion);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user