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

Commit 12a342c5 authored by Tony Huang's avatar Tony Huang Committed by Android (Google) Code Review
Browse files

Merge "Only clear selection if select size larger than 0"

parents 5036862d f33d0d7a
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -122,7 +122,9 @@ public class ActionModeController extends SelectionObserver<String>
        mActionMode = null;
        mActionMode = null;
        mMenu = null;
        mMenu = null;


        if (mSelected.size() > 0) {
            mSelectionMgr.clearSelection();
            mSelectionMgr.clearSelection();
        }


        // Reset window title back to activity title, i.e. Root name
        // Reset window title back to activity title, i.e. Root name
        mActivity.getWindow().setTitle(mActivity.getTitle());
        mActivity.getWindow().setTitle(mActivity.getTitle());