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

Commit d6210de7 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

am dd5d4e37: Merge "Fix : Bouncing Extract Text when correcting multiple lines...

am dd5d4e37: Merge "Fix : Bouncing Extract Text when correcting multiple lines of text." into gingerbread

Merge commit 'dd5d4e37' into gingerbread-plus-aosp

* commit 'dd5d4e37':
  Fix : Bouncing Extract Text when correcting multiple lines of text.
parents b9705959 dd5d4e37
Loading
Loading
Loading
Loading
+33 −2
Original line number Diff line number Diff line
@@ -795,6 +795,37 @@ public class LatinIME extends InputMethodService
        }
    }

    /**
     * This is called when the user has clicked on the extracted text view,
     * when running in fullscreen mode.  The default implementation hides
     * the candidates view when this happens, but only if the extracted text
     * editor has a vertical scroll bar because its text doesn't fit.
     * Here we override the behavior due to the possibility that a re-correction could
     * cause the candidate strip to disappear and re-appear.
     */
    @Override
    public void onExtractedTextClicked() {
        if (mReCorrectionEnabled && isPredictionOn()) return;

        super.onExtractedTextClicked();
    }

    /**
     * This is called when the user has performed a cursor movement in the
     * extracted text view, when it is running in fullscreen mode.  The default
     * implementation hides the candidates view when a vertical movement
     * happens, but only if the extracted text editor has a vertical scroll bar
     * because its text doesn't fit.
     * Here we override the behavior due to the possibility that a re-correction could
     * cause the candidate strip to disappear and re-appear.
     */
    @Override
    public void onExtractedCursorMovement(int dx, int dy) {
        if (mReCorrectionEnabled && isPredictionOn()) return;

        super.onExtractedCursorMovement(dx, dy);
    }

    @Override
    public void hideWindow() {
        LatinImeLogger.commit();