Only call per-user calls for gesture settings observer
Bug: 231648761
Fixes: 269392826
Test: Unable to reproduce 269392826, but verified this doesn't
break existing paths to adjust the insets
Change-Id: I8aa82f3fb77e627ac02352ef31b788b81c2ca901
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt b/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt
index 571d443..a6f59fe 100644
--- a/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt
+++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt
@@ -84,7 +84,7 @@
windowLayoutParams.insetsRoundedCornerFrame = true
context.addOnDeviceProfileChangeListener(deviceProfileChangeListener)
- gestureNavSettingsObserver.registerForCurrentUser()
+ gestureNavSettingsObserver.registerForCallingUser()
}
fun onDestroy() {
@@ -102,6 +102,7 @@
)
val contentHeight = controllers.taskbarStashController.contentHeightToReportToApps
val tappableHeight = controllers.taskbarStashController.tappableHeightToReportToApps
+ val res = context.resources;
for (provider in windowLayoutParams.providedInsets) {
if (
provider.type == ITYPE_EXTRA_NAVIGATION_BAR ||
@@ -113,7 +114,7 @@
} else if (provider.type == ITYPE_LEFT_GESTURES) {
provider.insetsSize =
Insets.of(
- gestureNavSettingsObserver.getLeftSensitivity(context.resources),
+ gestureNavSettingsObserver.getLeftSensitivityForCallingUser(res),
0,
0,
0
@@ -123,7 +124,7 @@
Insets.of(
0,
0,
- gestureNavSettingsObserver.getRightSensitivity(context.resources),
+ gestureNavSettingsObserver.getRightSensitivityForCallingUser(res),
0
)
}