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

Commit 8d6fd877 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android Git Automerger
Browse files

am b1bc5fd8: Bug 5352720: IME_FLAG_NO_EXTRACT_UI is not enforced

* commit 'b1bc5fd8':
  Bug 5352720: IME_FLAG_NO_EXTRACT_UI is not enforced
parents 68c7b9b1 b1bc5fd8
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -1001,8 +1001,17 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar

    @Override
    public boolean onEvaluateFullscreenMode() {
        return super.onEvaluateFullscreenMode()
                && mResources.getBoolean(R.bool.config_use_fullscreen_mode);
        if (!super.onEvaluateFullscreenMode()) return false;

        final EditorInfo ei = getCurrentInputEditorInfo();
        if (ei != null) {
            final int imeOptions = ei.imeOptions;
            if ((imeOptions & EditorInfo.IME_FLAG_NO_EXTRACT_UI) != 0) {
                return false;
            }
        }

        return mResources.getBoolean(R.bool.config_use_fullscreen_mode);
    }

    @Override