Revert "Bug 5352720: IME_FLAG_NO_EXTRACT_UI is not enforced"
This reverts commit b1bc5fd896
. (If3a73179)
Bug: 5410786
This commit is contained in:
parent
31e6d20db0
commit
d874ac581e
1 changed files with 2 additions and 11 deletions
|
@ -1039,17 +1039,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onEvaluateFullscreenMode() {
|
public boolean onEvaluateFullscreenMode() {
|
||||||
if (!super.onEvaluateFullscreenMode()) return false;
|
return super.onEvaluateFullscreenMode()
|
||||||
|
&& mResources.getBoolean(R.bool.config_use_fullscreen_mode);
|
||||||
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue