am b1bc5fd8: Bug 5352720: IME_FLAG_NO_EXTRACT_UI is not enforced

* commit 'b1bc5fd896329a39ad51a8c79e2970750c814ea0':
  Bug 5352720: IME_FLAG_NO_EXTRACT_UI is not enforced
main
Gilles Debunne 2011-09-21 18:57:03 -07:00 committed by Android Git Automerger
commit 8d6fd877c5
1 changed files with 11 additions and 2 deletions

View File

@ -1001,8 +1001,17 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
@Override @Override
public boolean onEvaluateFullscreenMode() { public boolean onEvaluateFullscreenMode() {
return super.onEvaluateFullscreenMode() if (!super.onEvaluateFullscreenMode()) return false;
&& 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