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

Commit 811f9045 authored by Ben Lin's avatar Ben Lin
Browse files

Cleaning up mRestoredSelection after restoring selection.

Test: Manual test.
Bug: 38181413
Change-Id: Idbd7ec95cb616ba7f666bd6d56d8d42a3f8aca07
parent b18a526e
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -1085,9 +1085,7 @@ public class DirectoryFragment extends Fragment implements SwipeRefreshLayout.On


            if (mRestoredSelection != null) {
            if (mRestoredSelection != null) {
                mSelectionMgr.restoreSelection(mRestoredSelection);
                mSelectionMgr.restoreSelection(mRestoredSelection);
                // Note, we'll take care of cleaning up retained selection
                mRestoredSelection = null;
                // in the selection handler where we already have some
                // specialized code to handle when selection was restored.
            }
            }


            // Restore any previous instance state
            // Restore any previous instance state