summaryrefslogtreecommitdiffstats
path: root/core/java/android/inputmethodservice
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-01-13 06:11:05 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-01-13 06:11:05 -0800
commitace8addce47efc03be5038eef48d7fb066b14aae (patch)
tree3cb0b7bd350eedcb773f39aeb983baefdcc946a6 /core/java/android/inputmethodservice
parent1fed31aa81f769db308f6d92b0530ad52fa79ca8 (diff)
parent2edd68260f26cbd6eddd0df16404bb6bcb22b3b6 (diff)
downloadframeworks_base-ace8addce47efc03be5038eef48d7fb066b14aae.zip
frameworks_base-ace8addce47efc03be5038eef48d7fb066b14aae.tar.gz
frameworks_base-ace8addce47efc03be5038eef48d7fb066b14aae.tar.bz2
am 2edd6826: Create a new ImeOption that disables fullscreen in landscape, and use it.
Merge commit '2edd68260f26cbd6eddd0df16404bb6bcb22b3b6' into eclair-mr2-plus-aosp * commit '2edd68260f26cbd6eddd0df16404bb6bcb22b3b6': Create a new ImeOption that disables fullscreen in landscape, and use it.
Diffstat (limited to 'core/java/android/inputmethodservice')
-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 5499bba..6978974 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;
}
/**