Add a new window flag to display a window when keyguard is shown.
This commit is contained in:
@@ -466,6 +466,15 @@ public interface WindowManager extends ViewManager {
|
||||
*/
|
||||
public static final int FLAG_WATCH_OUTSIDE_TOUCH = 0x00040000;
|
||||
|
||||
/** Window flag: special flag to let windows be shown when the screen
|
||||
* is locked. This will let application windows take precedence over
|
||||
* key guard or any other lock screens. Can be used with
|
||||
* {@link #FLAG_KEEP_SCREEN_ON} to turn screen on and display windows
|
||||
* directly before showing the key guard window
|
||||
*
|
||||
* {@hide} */
|
||||
public static final int FLAG_SHOW_WHEN_LOCKED = 0x00080000;
|
||||
|
||||
/** Window flag: a special option intended for system dialogs. When
|
||||
* this flag is set, the window will demand focus unconditionally when
|
||||
* it is created.
|
||||
|
||||
@@ -1300,7 +1300,6 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
|
||||
mKeyWaiter.handleNewWindowLocked(mCurrentFocus);
|
||||
}
|
||||
}
|
||||
|
||||
if (localLOGV) Log.v(
|
||||
TAG, "New client " + client.asBinder()
|
||||
+ ": window=" + win);
|
||||
@@ -7732,7 +7731,6 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
|
||||
int i;
|
||||
|
||||
// FIRST LOOP: Perform a layout, if needed.
|
||||
|
||||
performLayoutLockedInner();
|
||||
|
||||
if (mFxSession == null) {
|
||||
@@ -7752,7 +7750,6 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
|
||||
}
|
||||
|
||||
// SECOND LOOP: Execute animations and update visibility of windows.
|
||||
|
||||
boolean orientationChangeComplete = true;
|
||||
Session holdScreen = null;
|
||||
float screenBrightness = -1;
|
||||
|
||||
Reference in New Issue
Block a user