Merge pull request #5452 from ByteHamster/end-select-fewer
End select mode when the number of items got smaller
This commit is contained in:
commit
63d6f3f2e3
|
@ -304,6 +304,10 @@ public class SubscriptionFragment extends Fragment
|
|||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(
|
||||
result -> {
|
||||
if (listItems != null && listItems.size() > result.size()) {
|
||||
// We have fewer items. This can result in items being selected that are no longer visible.
|
||||
subscriptionAdapter.endSelectMode();
|
||||
}
|
||||
listItems = result;
|
||||
subscriptionAdapter.setItems(result);
|
||||
subscriptionAdapter.notifyDataSetChanged();
|
||||
|
|
Loading…
Reference in New Issue