aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2014-10-22 02:08:04 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-22 02:08:04 +0000
commit1588956f7cbf39bfc768759f65072d8af4f026c7 (patch)
treeda1d06cc8753f0491b598b59b962ca77e88738c6 /java/src/com/android/inputmethod/latin/utils
parentf9c8a44bbe7c2533c44aec3d6f7d902910267fc8 (diff)
parentbaecaa54114300dd2b3aceff480895bf1e42746f (diff)
downloadlatinime-1588956f7cbf39bfc768759f65072d8af4f026c7.tar.gz
latinime-1588956f7cbf39bfc768759f65072d8af4f026c7.tar.xz
latinime-1588956f7cbf39bfc768759f65072d8af4f026c7.zip
am baecaa54: Merge "Remove BuildCompatUtils.VERSION_CODES_LXX"
* commit 'baecaa54114300dd2b3aceff480895bf1e42746f': Remove BuildCompatUtils.VERSION_CODES_LXX
Diffstat (limited to 'java/src/com/android/inputmethod/latin/utils')
-rw-r--r--java/src/com/android/inputmethod/latin/utils/CursorAnchorInfoUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/utils/CursorAnchorInfoUtils.java b/java/src/com/android/inputmethod/latin/utils/CursorAnchorInfoUtils.java
index 6c1449cee..c90d30c42 100644
--- a/java/src/com/android/inputmethod/latin/utils/CursorAnchorInfoUtils.java
+++ b/java/src/com/android/inputmethod/latin/utils/CursorAnchorInfoUtils.java
@@ -96,7 +96,7 @@ public final class CursorAnchorInfoUtils {
@Nullable
public static CursorAnchorInfoCompatWrapper extractFromTextView(
@Nonnull final TextView textView) {
- if (Build.VERSION.SDK_INT < BuildCompatUtils.VERSION_CODES_LXX) {
+ if (BuildCompatUtils.EFFECTIVE_SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
return null;
}
return CursorAnchorInfoCompatWrapper.wrap(extractFromTextViewInternal(textView));
@@ -108,7 +108,7 @@ public final class CursorAnchorInfoUtils {
* @return the {@link CursorAnchorInfo} object based on the current layout. {@code null} if it
* is not feasible.
*/
- @TargetApi(BuildCompatUtils.VERSION_CODES_LXX)
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Nullable
private static CursorAnchorInfo extractFromTextViewInternal(@Nonnull final TextView textView) {
final Layout layout = textView.getLayout();