From 85b53adc750c605adcd0662740df24861ad27f33 Mon Sep 17 00:00:00 2001 From: Steve Howard Date: Tue, 21 Sep 2010 15:13:39 -0700 Subject: [PATCH] Decrease sensitivity of orientation changes a bit. I've noticed over the past couple weeks that my phone was flipping to landscape when I placed it down too often, more like it did in Eclair. I think my previous changes to make orientation changes quicker were a bit too aggressive, so I'm backing off a couple of the time constants. Change-Id: Ifffd45ac934984cc9091da56958bc2b6bcaa280a --- core/java/android/view/WindowOrientationListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/view/WindowOrientationListener.java b/core/java/android/view/WindowOrientationListener.java index 55d11bb19a950..8ffa15810cd0a 100755 --- a/core/java/android/view/WindowOrientationListener.java +++ b/core/java/android/view/WindowOrientationListener.java @@ -214,9 +214,9 @@ public abstract class WindowOrientationListener { // background. // When device is near-vertical (screen approximately facing the horizon) - private static final int DEFAULT_TIME_CONSTANT_MS = 50; + private static final int DEFAULT_TIME_CONSTANT_MS = 100; // When device is partially tilted towards the sky or ground - private static final int TILTED_TIME_CONSTANT_MS = 300; + private static final int TILTED_TIME_CONSTANT_MS = 500; // When device is under external acceleration, i.e. not just gravity. We heavily distrust // such readings. private static final int ACCELERATING_TIME_CONSTANT_MS = 2000;