diff options
author | Mike Lockwood <lockwood@android.com> | 2009-11-18 15:37:10 -0500 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-11-18 18:45:59 -0500 |
commit | 0e39ea83c5578e0d55e120c91ff7cfeeb0c1cb2f (patch) | |
tree | a4ef4b0b89816adc34b10618889aa4021867c58f /cmds/svc | |
parent | 30998a59aced3248b3a6f5e507dba0394fb54cad (diff) | |
download | frameworks_base-0e39ea83c5578e0d55e120c91ff7cfeeb0c1cb2f.zip frameworks_base-0e39ea83c5578e0d55e120c91ff7cfeeb0c1cb2f.tar.gz frameworks_base-0e39ea83c5578e0d55e120c91ff7cfeeb0c1cb2f.tar.bz2 |
Fixes for proximity sensor behavior:
Add optional flag to Wakelock.release() to specify whether we should wait for proximity sensor to go negative before turning on the screen.
Clear the "waiting for proximity sensor to go negative" state when the power key is pressed.
Part of the fix for b/2243198 (Black screen lockup after ending call)
Change-Id: I813fdb7aa4192cd3384a25be9e59d7d4b90da53a
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'cmds/svc')
-rw-r--r-- | cmds/svc/src/com/android/commands/svc/PowerCommand.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/svc/src/com/android/commands/svc/PowerCommand.java b/cmds/svc/src/com/android/commands/svc/PowerCommand.java index e021012..d3ec3d9 100644 --- a/cmds/svc/src/com/android/commands/svc/PowerCommand.java +++ b/cmds/svc/src/com/android/commands/svc/PowerCommand.java @@ -66,7 +66,7 @@ public class PowerCommand extends Svc.Command { IBinder lock = new Binder(); pm.acquireWakeLock(PowerManager.FULL_WAKE_LOCK, lock, "svc power"); pm.setStayOnSetting(val); - pm.releaseWakeLock(lock); + pm.releaseWakeLock(lock, 0); } catch (RemoteException e) { System.err.println("Faild to set setting: " + e); |