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

Commit ad67f12a authored by Nick Chameyev's avatar Nick Chameyev Committed by Automerger Merge Worker
Browse files

Merge "Update flat inclination threshold in foldable device state provider"...

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/26485072



Change-Id: Ia89078d9e02a3033896ab963d5c8f01d67316cac
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 574887ce 374e7025
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