* commit '5e118c4c048254d40405dbb454bbea9ab9e9d174': Assuming that NO_EXTRACT_UI mode is NO_FULSCREEN
This commit is contained in:
commit
ef5f88f33e
1 changed files with 10 additions and 1 deletions
|
@ -1063,7 +1063,16 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||||
// Reread resource value here, because this method is called by framework anytime as needed.
|
// Reread resource value here, because this method is called by framework anytime as needed.
|
||||||
final boolean isFullscreenModeAllowed =
|
final boolean isFullscreenModeAllowed =
|
||||||
mCurrentSettings.isFullscreenModeAllowed(getResources());
|
mCurrentSettings.isFullscreenModeAllowed(getResources());
|
||||||
return super.onEvaluateFullscreenMode() && isFullscreenModeAllowed;
|
if (super.onEvaluateFullscreenMode() && isFullscreenModeAllowed) {
|
||||||
|
// TODO: Remove this hack. Actually we should not really assume NO_EXTRACT_UI
|
||||||
|
// implies NO_FULLSCREEN. However, the framework mistakenly does. i.e. NO_EXTRACT_UI
|
||||||
|
// without NO_FULLSCREEN doesn't work as expected. Because of this we need this
|
||||||
|
// hack for now. Let's get rid of this once the framework gets fixed.
|
||||||
|
final EditorInfo ei = getCurrentInputEditorInfo();
|
||||||
|
return !(ei != null && ((ei.imeOptions & EditorInfo.IME_FLAG_NO_EXTRACT_UI) != 0));
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue