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

Commit 0af8ad85 authored by Yi Jiang's avatar Yi Jiang
Browse files

Reduces the timeout of rotation memeorization.

Based on the feedback of beta3 relase, the timeout of rotation
memeorization should be reduced to 3 seconds.

Test: locally tested
Bug: 192010410
Change-Id: Ife25235d89224c80117689935a0c7edefc4a56f9
parent a0df5a94
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -68,7 +68,7 @@ public abstract class WindowOrientationListener {
    private static final String KEY_ROTATION_MEMORIZATION_TIMEOUT =
    private static final String KEY_ROTATION_MEMORIZATION_TIMEOUT =
            "rotation_memorization_timeout_millis";
            "rotation_memorization_timeout_millis";
    private static final long DEFAULT_ROTATION_RESOLVER_TIMEOUT_MILLIS = 700L;
    private static final long DEFAULT_ROTATION_RESOLVER_TIMEOUT_MILLIS = 700L;
    private static final long DEFAULT_ROTATION_MEMORIZATION_TIMEOUT_MILLIS = 10_000L; // 10 seconds
    private static final long DEFAULT_ROTATION_MEMORIZATION_TIMEOUT_MILLIS = 3_000L; // 3 seconds


    private Handler mHandler;
    private Handler mHandler;
    private SensorManager mSensorManager;
    private SensorManager mSensorManager;