Merge "Fix NPE in IMS#onEvaluateFullscreenMode" into sc-v2-dev am: cdda26f9c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15626298 Change-Id: I1081c13f067a571b18e4081183832ddf71010265
This commit is contained in:
committed by
Automerger Merge Worker
commit
757a2bc5bf
@@ -1732,12 +1732,12 @@ public class InputMethodService extends AbstractInputMethodService {
|
|||||||
if (config.orientation != Configuration.ORIENTATION_LANDSCAPE) {
|
if (config.orientation != Configuration.ORIENTATION_LANDSCAPE) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ((mInputEditorInfo != null
|
if (mInputEditorInfo != null
|
||||||
&& (mInputEditorInfo.imeOptions & EditorInfo.IME_FLAG_NO_FULLSCREEN) != 0)
|
&& ((mInputEditorInfo.imeOptions & EditorInfo.IME_FLAG_NO_FULLSCREEN) != 0
|
||||||
// If app window has portrait orientation, regardless of what display orientation
|
// If app window has portrait orientation, regardless of what display orientation
|
||||||
// is, IME shouldn't use fullscreen-mode.
|
// is, IME shouldn't use fullscreen-mode.
|
||||||
|| (mInputEditorInfo.internalImeOptions
|
|| (mInputEditorInfo.internalImeOptions
|
||||||
& EditorInfo.IME_INTERNAL_FLAG_APP_WINDOW_PORTRAIT) != 0) {
|
& EditorInfo.IME_INTERNAL_FLAG_APP_WINDOW_PORTRAIT) != 0)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user