Use nearest region for all the nav buttons in 3-button folded mode

Bug: 230395757
Test: In 3-button folded mode, make sure that the touches that happen between nav buttons go to the nearest button. No regression in other modes.

Change-Id: Icb776a9a4ed4fc31d33dc3267c7053f2b0da0bfc
This commit is contained in:
Tracy Zhou committed 2024-01-24 11:06:01 -08:00
1 parent 5f3b761451
commit 9c9befae5f
9 files changed
+232 -11

No files matched your search

@@ -56,7 +56,7 @@ class NavButtonLayoutFactory {
*/
fun getUiLayoutter(
deviceProfile: DeviceProfile,
navButtonsView: FrameLayout,
navButtonsView: NearestTouchFrame,
imeSwitcher: ImageView?,
rotationButton: RotationButton?,
a11yButton: ImageView?,
@@ -78,6 +78,7 @@ class NavButtonLayoutFactory {
return when {
isPhoneNavMode -> {
if (!deviceProfile.isLandscape) {
navButtonsView.setIsVertical(false)
PhonePortraitNavLayoutter(
resources,
navButtonContainer,
@@ -88,6 +89,7 @@ class NavButtonLayoutFactory {
a11yButton
)
} else if (surfaceRotation == ROTATION_90) {
navButtonsView.setIsVertical(true)
PhoneLandscapeNavLayoutter(
resources,
navButtonContainer,
@@ -98,6 +100,7 @@ class NavButtonLayoutFactory {
a11yButton
)
} else {
navButtonsView.setIsVertical(true)
PhoneSeascapeNavLayoutter(
resources,
navButtonContainer,