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

Commit 033bbf6c authored by Andrei Stingaceanu's avatar Andrei Stingaceanu Committed by Android Git Automerger
Browse files

am 8c44e745: Merge "Landscape extracted mode - floating toolbar interference" into mnc-dev

* commit '8c44e745':
  Landscape extracted mode - floating toolbar interference
parents b9e70c46 8c44e745
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -1699,6 +1699,15 @@ public class Editor {
     * @return true if the selection mode was actually started.
     */
    private boolean startSelectionActionModeWithoutSelection() {
        if (extractedTextModeWillBeStarted()) {
            // Cancel the single tap delayed runnable.
            if (mSelectionModeWithoutSelectionRunnable != null) {
                mTextView.removeCallbacks(mSelectionModeWithoutSelectionRunnable);
            }

            return false;
        }

        if (mSelectionActionMode != null) {
            // Selection action mode is already started
            // TODO: revisit invocations to minimize this case.
@@ -1740,6 +1749,15 @@ public class Editor {
    }

    private boolean startSelectionActionModeWithSelectionInternal() {
        if (extractedTextModeWillBeStarted()) {
            // Cancel the single tap delayed runnable.
            if (mSelectionModeWithoutSelectionRunnable != null) {
                mTextView.removeCallbacks(mSelectionModeWithoutSelectionRunnable);
            }

            return false;
        }

        if (mSelectionActionMode != null) {
            // Selection action mode is already started
            mSelectionActionMode.invalidate();