am 89d7965e: Merge "Fix NoClassDefFoundError due to CursorAnchorInfo in K"

* commit '89d7965e76da6044d593cd6dacc45147033cfc23':
  Fix NoClassDefFoundError due to CursorAnchorInfo in K
main
Yohei Yukawa 2014-10-07 10:34:20 +00:00 committed by Android Git Automerger
commit 302e76711f
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,7 @@ import android.content.res.Resources;
import android.inputmethodservice.InputMethodService; import android.inputmethodservice.InputMethodService;
import android.media.AudioManager; import android.media.AudioManager;
import android.net.ConnectivityManager; import android.net.ConnectivityManager;
import android.os.Build;
import android.os.Debug; import android.os.Debug;
import android.os.IBinder; import android.os.IBinder;
import android.os.Message; import android.os.Message;
@ -793,6 +794,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}; };
private void onExtractTextViewPreDraw() { private void onExtractTextViewPreDraw() {
// CursorAnchorInfo is available on L and later.
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.L) {
return;
}
if (!isFullscreenMode() || mExtractEditText == null) { if (!isFullscreenMode() || mExtractEditText == null) {
return; return;
} }