From 1e5374e98b2707aecd774f495350a74be55ec5dc Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Wed, 17 Mar 2010 15:36:23 -0700 Subject: Remove popup for extension keyboard in landscape. bug: 2519903 Also add a summary text in the input language list for languages with a dictionary so that users don't feel cheated when they pick a language that doesn't happen to have a dictionary. Remove greek as it isn't an extension of the QWERTY keyboard. --- java/src/com/android/inputmethod/latin/LatinKeyboardView.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardView.java') diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java index 2686a93c6..7ce1e4e65 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java @@ -19,6 +19,7 @@ package com.android.inputmethod.latin; import java.util.List; import android.content.Context; +import android.content.res.Configuration; import android.graphics.Canvas; import android.graphics.Paint; import android.inputmethodservice.Keyboard; @@ -178,6 +179,10 @@ public class LatinKeyboardView extends KeyboardView { Keyboard keyboard; mExtension.setKeyboard(keyboard = new LatinKeyboard(getContext(), ((LatinKeyboard) getKeyboard()).getExtension())); + if (getContext().getResources().getConfiguration().orientation + == Configuration.ORIENTATION_LANDSCAPE) { + mExtension.setPreviewEnabled(false); + } mExtensionPopup.setContentView(mExtension); mExtensionPopup.setWidth(getWidth()); mExtensionPopup.setHeight(keyboard.getHeight()); -- cgit v1.2.3-83-g751a