diff options
author | 2010-09-15 16:48:56 -0700 | |
---|---|---|
committer | 2010-09-15 16:48:56 -0700 | |
commit | 9b2c10284b6b161f1f2c6da823e9c7c6a9a4681e (patch) | |
tree | 6d6dc3f6a19ed447eaf328d0d9231856e4a2c69f /java/src | |
parent | f027b1c5ebf4435d72d8211faadd4bd29b4cf11f (diff) | |
parent | d6210de709a0ed724f355743f196e827ebd7df50 (diff) | |
download | latinime-9b2c10284b6b161f1f2c6da823e9c7c6a9a4681e.tar.gz latinime-9b2c10284b6b161f1f2c6da823e9c7c6a9a4681e.tar.xz latinime-9b2c10284b6b161f1f2c6da823e9c7c6a9a4681e.zip |
am d6210de7: am dd5d4e37: Merge "Fix : Bouncing Extract Text when correcting multiple lines of text." into gingerbread
Merge commit 'd6210de709a0ed724f355743f196e827ebd7df50'
* commit 'd6210de709a0ed724f355743f196e827ebd7df50':
Fix : Bouncing Extract Text when correcting multiple lines of text.
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 2ec5918e5..3e1f610e3 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2008 The Android Open Source Project - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at @@ -261,7 +261,7 @@ public class LatinIME extends InputMethodService List<String> candidates; Map<String, List<CharSequence>> alternatives; } - + public abstract static class WordAlternatives { protected CharSequence mChosenWord; @@ -794,6 +794,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(); |