From 0af8ad85f3f657867e939c9c0b629b892a582963 Mon Sep 17 00:00:00 2001 From: Yi Jiang Date: Fri, 6 Aug 2021 15:22:11 -0700 Subject: [PATCH] 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 --- .../java/com/android/server/wm/WindowOrientationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/wm/WindowOrientationListener.java b/services/core/java/com/android/server/wm/WindowOrientationListener.java index 0ded8fb313cdb..a967ea8fbf8c4 100644 --- a/services/core/java/com/android/server/wm/WindowOrientationListener.java +++ b/services/core/java/com/android/server/wm/WindowOrientationListener.java @@ -68,7 +68,7 @@ public abstract class WindowOrientationListener { private static final String KEY_ROTATION_MEMORIZATION_TIMEOUT = "rotation_memorization_timeout_millis"; 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 SensorManager mSensorManager;