summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-01-12 11:36:13 -0500
committerLeon Scroggins <scroggo@google.com>2010-01-12 17:29:25 -0500
commit2edd68260f26cbd6eddd0df16404bb6bcb22b3b6 (patch)
tree8a1dba568f64145301d6c61052ca312f301241d4 /core/java/android/inputmethodservice/InputMethodService.java
parentfef4874afddeeba8eaac6da49cc3203e9ce2d009 (diff)
Create a new ImeOption that disables fullscreen in landscape, and use it.
EditorInfo: Add a flag to tell the InputMethodService to never go into fullscreen mode. InputMethodService: When the new flag is set, onEvaluateFullscreenMode always returns false. WebTextView: Use the new flag, along with IME_FLAG_NO_EXTRACT_UI. Fixes http://b/issue?id=2358360
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
-rw-r--r--core/java/android/inputmethodservice/InputMethodService.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java
index 5499bbafb0ff..6978974efd63 100644
--- a/core/java/android/inputmethodservice/InputMethodService.java
+++ b/core/java/android/inputmethodservice/InputMethodService.java
@@ -841,7 +841,14 @@ public class InputMethodService extends AbstractInputMethodService {
*/
public boolean onEvaluateFullscreenMode() {
Configuration config = getResources().getConfiguration();
- return config.orientation == Configuration.ORIENTATION_LANDSCAPE;
+ if (config.orientation != Configuration.ORIENTATION_LANDSCAPE) {
+ return false;
+ }
+ if (mInputEditorInfo != null
+ && (mInputEditorInfo.imeOptions & EditorInfo.IME_FLAG_NO_FULLSCREEN) != 0) {
+ return false;
+ }
+ return true;
}
/**