diff options
| author | Dianne Hackborn <hackbod@google.com> | 2011-09-18 14:43:08 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2011-09-18 14:52:52 -0700 |
| commit | 38e29a61d0c87fe3e391d24e2eb11dd1800d107d (patch) | |
| tree | fdc6a15527c224504dae9a2f2352ea97aa804bd2 /core/java/android/view/WindowManagerPolicy.java | |
| parent | 07adee4a559e1655c5c1c1ec2f3b9bc15c33ea61 (diff) | |
Fix issue #5242779: Device not responding to touch on unlock screen
Rework how we decide when it is okay to turn on the screen by having
the policy call back to the power manager when it knows the lock screen
has been drawn.
Change-Id: Ie8f3f72111dcf7f168723e6dce24e0343b4afe5d
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index 980e454294b6..fdbda4caedab 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -772,10 +772,16 @@ public interface WindowManagerPolicy { */ public void screenTurnedOff(int why); + public interface ScreenOnListener { + void onScreenOn(); + }; + /** - * Called after the screen turns on. + * Called when the power manager would like to turn the screen on. + * Must call back on the listener to tell it when the higher-level system + * is ready for the screen to go on (i.e. the lock screen is shown). */ - public void screenTurnedOn(); + public void screenTurningOn(ScreenOnListener screenOnListener); /** * Return whether the screen is currently on. |
