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

Commit 298fd2cf authored by Adrian Roos's avatar Adrian Roos
Browse files

GestureNav: Fix bug in exlcusion limit device config

Fixes an issue, where the DeviceConfig exclusion limit was reset
whenever another key in the android:window_manager namespace changed.

Fixes: 140190037
Test: Set limit device config flag to value >200, set unrelated flag, verify limit is still >200.
Change-Id: I2df5b6661cc5e545d7c3de38dec5c86e66baea22
Merged-In: I2df5b6661cc5e545d7c3de38dec5c86e66baea22
parent 667db1be
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1167,7 +1167,8 @@ public class WindowManagerService extends IWindowManager.Stub
                new HandlerExecutor(mH), properties -> {
                    synchronized (mGlobalLock) {
                        final int exclusionLimitDp = Math.max(MIN_GESTURE_EXCLUSION_LIMIT_DP,
                                properties.getInt(KEY_SYSTEM_GESTURE_EXCLUSION_LIMIT_DP, 0));
                                DeviceConfig.getInt(DeviceConfig.NAMESPACE_WINDOW_MANAGER,
                                        KEY_SYSTEM_GESTURE_EXCLUSION_LIMIT_DP, 0));
                        final boolean excludedByPreQSticky = DeviceConfig.getBoolean(
                                DeviceConfig.NAMESPACE_WINDOW_MANAGER,
                                KEY_SYSTEM_GESTURES_EXCLUDED_BY_PRE_Q_STICKY_IMMERSIVE, false);