am f7178d3c: Allow the secure keyguard to engage behind Dreams.
* commit 'f7178d3cadfeb0101491eeea7d7f3b0d7c26dbe6': Allow the secure keyguard to engage behind Dreams.
This commit is contained in:
@@ -346,6 +346,11 @@ public class Dream extends Service implements Window.Callback {
|
||||
lp.type = WindowManager.LayoutParams.TYPE_DREAM;
|
||||
lp.token = windowToken;
|
||||
lp.windowAnimations = com.android.internal.R.style.Animation_Dream;
|
||||
lp.flags |= ( WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
|
||||
| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD
|
||||
| WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON
|
||||
);
|
||||
mWindow.setAttributes(lp);
|
||||
|
||||
//WindowManagerImpl.getDefault().addView(mWindow.getDecorView(), lp);
|
||||
|
||||
|
||||
@@ -2854,8 +2854,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
if ((attrs.flags & FLAG_FORCE_NOT_FULLSCREEN) != 0) {
|
||||
mForceStatusBar = true;
|
||||
}
|
||||
if (attrs.type >= FIRST_APPLICATION_WINDOW
|
||||
&& attrs.type <= LAST_APPLICATION_WINDOW
|
||||
if (((attrs.type >= FIRST_APPLICATION_WINDOW && attrs.type <= LAST_APPLICATION_WINDOW)
|
||||
|| attrs.type == TYPE_DREAM)
|
||||
&& attrs.x == 0 && attrs.y == 0
|
||||
&& attrs.width == WindowManager.LayoutParams.MATCH_PARENT
|
||||
&& attrs.height == WindowManager.LayoutParams.MATCH_PARENT) {
|
||||
|
||||
Reference in New Issue
Block a user