* commit '8d6fd877c5ac11aa0852b5a28bf1a52081ae9157': Bug 5352720: IME_FLAG_NO_EXTRACT_UI is not enforced
This commit is contained in:
commit
eaa4a97737
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue