Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c584f20 authored by Jeff Brown's avatar Jeff Brown
Browse files

Use exactly the same timings for the ElectronBeam as JB.

Bug: 7318962
Change-Id: Ic04bac5b07ec64fed84a6381ee1916ddeed01255
parent f6215e55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ final class DisplayPowerController {
    private static final long TWILIGHT_ADJUSTMENT_TIME = DateUtils.HOUR_IN_MILLIS * 2;

    private static final int ELECTRON_BEAM_ON_ANIMATION_DURATION_MILLIS = 250;
    private static final int ELECTRON_BEAM_OFF_ANIMATION_DURATION_MILLIS = 450;
    private static final int ELECTRON_BEAM_OFF_ANIMATION_DURATION_MILLIS = 400;

    private static final int MSG_UPDATE_POWER_STATE = 1;
    private static final int MSG_PROXIMITY_SENSOR_DEBOUNCED = 2;
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ final class ElectronBeam {
    // The relative proportion of the animation to spend performing
    // the horizontal stretch effect.  The remainder is spent performing
    // the vertical stretch effect.
    private static final float HSTRETCH_DURATION = 0.4f;
    private static final float HSTRETCH_DURATION = 0.5f;
    private static final float VSTRETCH_DURATION = 1.0f - HSTRETCH_DURATION;

    // Set to true when the animation context has been fully prepared.