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

Commit 7552c044 authored by Jeff Brown's avatar Jeff Brown
Browse files

Increase orientation settle time.

Bug: 4981385

Improves noise tolerance and reduces the chance of mispredicted
orientation changes.

Change-Id: I27f2c05a981ae93b0de41c542d41377b2ea25450
parent 5a0a47a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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!