diff options
author | 2011-01-20 05:09:06 -0800 | |
---|---|---|
committer | 2011-01-20 05:09:06 -0800 | |
commit | f4a5be4ba1f37280857fc84c566504f0e5408b96 (patch) | |
tree | 038cba0d8ef66ed7fa5a41bb23da1bec0a1537f2 /java/src | |
parent | 01a0cd6624e65ce7454f6224a6d8c727c80b1906 (diff) | |
parent | 6845da8d7b940018c4ef77646f0028d131ed2753 (diff) | |
download | latinime-f4a5be4ba1f37280857fc84c566504f0e5408b96.tar.gz latinime-f4a5be4ba1f37280857fc84c566504f0e5408b96.tar.xz latinime-f4a5be4ba1f37280857fc84c566504f0e5408b96.zip |
am 6845da8d: Add touchable region
* commit '6845da8d7b940018c4ef77646f0028d131ed2753':
Add touchable region
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 4e1c56cba..bc42dff84 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -27,6 +27,7 @@ import com.android.inputmethod.latin.Utils.RingCharBuffer; import com.android.inputmethod.voice.VoiceIMEConnector; import android.app.AlertDialog; +import android.app.Dialog; import android.content.BroadcastReceiver; import android.content.Context; import android.content.DialogInterface; @@ -35,6 +36,7 @@ import android.content.IntentFilter; import android.content.SharedPreferences; import android.content.res.Configuration; import android.content.res.Resources; +import android.graphics.Region; import android.inputmethodservice.InputMethodService; import android.media.AudioManager; import android.os.Debug; @@ -862,6 +864,14 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (!isFullscreenMode()) { outInsets.contentTopInsets = outInsets.visibleTopInsets; } + KeyboardView inputView = mKeyboardSwitcher.getInputView(); + if (inputView != null) { + // Screen's heightPixels may be too big, but want to make + // it large enough to cover status bar in any cases. + outInsets.touchableInsets = InputMethodService.Insets.TOUCHABLE_INSETS_REGION; + outInsets.touchableRegion.set( + 0, 0, inputView.getWidth(), getResources().getDisplayMetrics().heightPixels); + } } @Override |