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

Commit cdda26f9 authored by Android Build Prod User's avatar Android Build Prod User Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in IMS#onEvaluateFullscreenMode" into sc-v2-dev

parents efa4aca7 fabbcd12
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1732,12 +1732,12 @@ public class InputMethodService extends AbstractInputMethodService {
        if (config.orientation != Configuration.ORIENTATION_LANDSCAPE) {
            return false;
        }
        if ((mInputEditorInfo != null
                && (mInputEditorInfo.imeOptions & EditorInfo.IME_FLAG_NO_FULLSCREEN) != 0)
        if (mInputEditorInfo != null
                && ((mInputEditorInfo.imeOptions & EditorInfo.IME_FLAG_NO_FULLSCREEN) != 0
                // If app window has portrait orientation, regardless of what display orientation
                // is, IME shouldn't use fullscreen-mode.
                || (mInputEditorInfo.internalImeOptions
                        & EditorInfo.IME_INTERNAL_FLAG_APP_WINDOW_PORTRAIT) != 0) {
                        & EditorInfo.IME_INTERNAL_FLAG_APP_WINDOW_PORTRAIT) != 0)) {
            return false;
        }
        return true;