diff options
author | 2013-01-06 19:26:16 -0800 | |
---|---|---|
committer | 2013-01-06 19:26:16 -0800 | |
commit | 25d1595ab425835281e68aa0d68e6af11acab478 (patch) | |
tree | 663984ffe04d0a47caa64a84f8f070a8ff1b1059 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 7e387bc919c443ba90a19b2f0aaccb05a7088468 (diff) | |
parent | b6ca354431367b625daf9fff5fbe4b1f5ef996ab (diff) | |
download | latinime-25d1595ab425835281e68aa0d68e6af11acab478.tar.gz latinime-25d1595ab425835281e68aa0d68e6af11acab478.tar.xz latinime-25d1595ab425835281e68aa0d68e6af11acab478.zip |
am b6ca3544: Small code cleanups
* commit 'b6ca354431367b625daf9fff5fbe4b1f5ef996ab':
Small code cleanups
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 0ee79d955..1061859df 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -35,6 +35,7 @@ import android.graphics.Rect; import android.inputmethodservice.InputMethodService; import android.media.AudioManager; import android.net.ConnectivityManager; +import android.os.Build.VERSION_CODES; import android.os.Debug; import android.os.Handler; import android.os.HandlerThread; @@ -1318,10 +1319,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction return; } - // 16 is android.os.Build.VERSION_CODES.JELLY_BEAN but we can't write it because - // we want to be able to compile against the Ice Cream Sandwich SDK. if (Constants.CODE_ENTER == code && mTargetApplicationInfo != null - && mTargetApplicationInfo.targetSdkVersion < 16) { + && mTargetApplicationInfo.targetSdkVersion < VERSION_CODES.JELLY_BEAN) { // Backward compatibility mode. Before Jelly bean, the keyboard would simulate // a hardware keyboard event on pressing enter or delete. This is bad for many // reasons (there are race conditions with commits) but some applications are @@ -1736,10 +1735,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction // This should never happen. Log.e(TAG, "Backspace when we don't know the selection position"); } - // 16 is android.os.Build.VERSION_CODES.JELLY_BEAN but we can't write it because - // we want to be able to compile against the Ice Cream Sandwich SDK. if (mTargetApplicationInfo != null - && mTargetApplicationInfo.targetSdkVersion < 16) { + && mTargetApplicationInfo.targetSdkVersion < VERSION_CODES.JELLY_BEAN) { // Backward compatibility mode. Before Jelly bean, the keyboard would simulate // a hardware keyboard event on pressing enter or delete. This is bad for many // reasons (there are race conditions with commits) but some applications are |