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

Commit 374e7025 authored by Nick Chameyev's avatar Nick Chameyev Committed by Android (Google) Code Review
Browse files

Merge "Update flat inclination threshold in foldable device state provider" into 24D1-dev

parents e7a400e9 040d7fbe
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -177,8 +177,11 @@ public class BookStyleClosedStatePredicate implements Predicate<FoldableDeviceSt
     */
    private static class PostureEstimator implements SensorEventListener, Dumpable {

        private static final String FLAT_INCLINATION_THRESHOLD_DEGREES_PROPERTY
                = "persist.foldable_postures.wedge_inclination_threshold_degrees";

        private static final int FLAT_INCLINATION_THRESHOLD_DEGREES = 8;
        private static final int FLAT_INCLINATION_THRESHOLD_DEGREES = Integer.parseInt(
                System.getProperty(FLAT_INCLINATION_THRESHOLD_DEGREES_PROPERTY, "25"));

        /**
         * Alpha parameter of the accelerometer low pass filter: the lower the value, the less high