From 7552c044fcb60cb9db73372229048dcd0e65a955 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Wed, 31 Aug 2011 22:22:24 -0700 Subject: [PATCH] Increase orientation settle time. Bug: 4981385 Improves noise tolerance and reduces the chance of mispredicted orientation changes. Change-Id: I27f2c05a981ae93b0de41c542d41377b2ea25450 --- core/java/android/view/WindowOrientationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/view/WindowOrientationListener.java b/core/java/android/view/WindowOrientationListener.java index 5d4fbbef94cd1..76b47ca5a5e5e 100755 --- a/core/java/android/view/WindowOrientationListener.java +++ b/core/java/android/view/WindowOrientationListener.java @@ -332,7 +332,7 @@ public abstract class WindowOrientationListener { // we perform an orientation change under ideal conditions. It will take // proportionally longer than this to effect an orientation change when // the proposed orientation confidence is low. - private static final float ORIENTATION_SETTLE_TIME_MS = 100; + private static final float ORIENTATION_SETTLE_TIME_MS = 250; // The confidence that we have abount effecting each orientation change. // When one of these values exceeds 1.0, we have determined our new orientation!