Merge commit '47c38f00ab464a8fdb6ae2d819ae189c17b72410' * commit '47c38f00ab464a8fdb6ae2d819ae189c17b72410': Issue #2335763: Cant dial emergency number on my device
This commit is contained in:
@@ -2376,6 +2376,18 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
mInputMethodWindow = win;
|
||||
imMayMove = true;
|
||||
}
|
||||
if (win.mAttrs.type == TYPE_BASE_APPLICATION
|
||||
&& win.mAppToken != null
|
||||
&& win.mAppToken.startingWindow != null) {
|
||||
// Special handling of starting window over the base
|
||||
// window of the app: propagate lock screen flags to it,
|
||||
// to provide the correct semantics while starting.
|
||||
final int mask =
|
||||
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
|
||||
| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD;
|
||||
WindowManager.LayoutParams sa = win.mAppToken.startingWindow.mAttrs;
|
||||
sa.flags = (sa.flags&~mask) | (win.mAttrs.flags&mask);
|
||||
}
|
||||
} else {
|
||||
win.mEnterAnimationPending = false;
|
||||
if (win.mSurface != null) {
|
||||
|
||||
Reference in New Issue
Block a user