Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a8fbfce authored by Ben Kwa's avatar Ben Kwa Committed by Android (Google) Code Review
Browse files

Merge "Don't clear the selection when directory contents change."

parents cd872fb2 d4d0e708
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -129,9 +129,11 @@ public final class MultiSelectManager implements View.OnKeyListener {

                    @Override
                    public void onChanged() {
                        // TODO: This is causing b/22765812
                        mSelection.clear();
                        mModelIds = mAdapter.getModelIds();

                        // Update the selection to remove any disappeared IDs.
                        mSelection.cancelProvisionalSelection();
                        mSelection.intersect(mModelIds);
                    }

                    @Override