OSDN Git Service

Disable electron beam on animation.
authorJeff Brown <jeffbrown@google.com>
Tue, 21 Aug 2012 03:17:36 +0000 (20:17 -0700)
committerJeff Brown <jeffbrown@google.com>
Tue, 21 Aug 2012 03:19:16 +0000 (20:19 -0700)
We want the screen to come back on as soon as possible.

Change-Id: Ifdaa2e88d19590c3da53be985dd886633e5cac59

services/java/com/android/server/power/DisplayPowerController.java

index 9d04a0c..cf12b20 100644 (file)
@@ -75,8 +75,8 @@ final class DisplayPowerController {
     // If true, uses the electron beam on animation.
     // We might want to turn this off if we cannot get a guarantee that the screen
     // actually turns on and starts showing new content after the call to set the
-    // screen state returns.
-    private static final boolean USE_ELECTRON_BEAM_ON_ANIMATION = true;
+    // screen state returns.  Playing the animation can also be somewhat slow.
+    private static final boolean USE_ELECTRON_BEAM_ON_ANIMATION = false;
 
     private static final int ELECTRON_BEAM_ON_ANIMATION_DURATION_MILLIS = 300;
     private static final int ELECTRON_BEAM_OFF_ANIMATION_DURATION_MILLIS = 600;