Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89d7965e authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android (Google) Code Review
Browse files

Merge "Fix NoClassDefFoundError due to CursorAnchorInfo in K"

parents be4e1539 883bfd2c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.content.res.Resources;
import android.inputmethodservice.InputMethodService;
import android.media.AudioManager;
import android.net.ConnectivityManager;
import android.os.Build;
import android.os.Debug;
import android.os.IBinder;
import android.os.Message;
@@ -793,6 +794,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            };

    private void onExtractTextViewPreDraw() {
        // CursorAnchorInfo is available on L and later.
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.L) {
            return;
        }
        if (!isFullscreenMode() || mExtractEditText == null) {
            return;
        }