Merge "Reduces the timeout of rotation memeorization." into sc-dev am: 99f8b533c7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15481637

Change-Id: I75d88f8b08a542e17db148b76d2d4209c1c7b7ab
This commit is contained in:
Yi Jiang
2021-08-10 18:15:33 +00:00
committed by Automerger Merge Worker

View File

@@ -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;