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

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

am bbfacb4e: am 373816ef: Stop showing both the floating toolbar and suggestions

* commit 'bbfacb4e':
  Stop showing both the floating toolbar and suggestions
parents edb2308e bbfacb4e
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -1890,6 +1890,11 @@ public class Editor {

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

                    mShowSuggestionRunnable = new Runnable() {
                        public void run() {
                            showSuggestions();
@@ -3819,13 +3824,15 @@ public class Editor {
                    SystemClock.uptimeMillis() - TextView.sLastCutCopyOrTextChangedTime;

            // Cancel the single tap delayed runnable.
            if (mDoubleTap && mSelectionModeWithoutSelectionRunnable != null) {
            if (mSelectionModeWithoutSelectionRunnable != null
                    && (mDoubleTap || isCursorInsideEasyCorrectionSpan())) {
                mTextView.removeCallbacks(mSelectionModeWithoutSelectionRunnable);
            }

            // Prepare and schedule the single tap runnable to run exactly after the double tap
            // timeout has passed.
            if (!mDoubleTap && (durationSinceCutOrCopy < RECENT_CUT_COPY_DURATION)) {
            if (!mDoubleTap && !isCursorInsideEasyCorrectionSpan()
                    && (durationSinceCutOrCopy < RECENT_CUT_COPY_DURATION)) {
                if (mSelectionModeWithoutSelectionRunnable == null) {
                    mSelectionModeWithoutSelectionRunnable = new Runnable() {
                        public void run() {
+2 −2
Original line number Diff line number Diff line
@@ -8015,8 +8015,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
     * through a thunk.
     */
    void sendAfterTextChanged(Editable text) {
        sLastCutCopyOrTextChangedTime = 0;

        if (mListeners != null) {
            final ArrayList<TextWatcher> list = mListeners;
            final int count = list.size();
@@ -8049,6 +8047,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
     * through a thunk.
     */
    void handleTextChanged(CharSequence buffer, int start, int before, int after) {
        sLastCutCopyOrTextChangedTime = 0;

        final Editor.InputMethodState ims = mEditor == null ? null : mEditor.mInputMethodState;
        if (ims == null || ims.mBatchEditNesting == 0) {
            updateAfterEdit();