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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user