Fixed the hotseat placement in RTL mode

Updated logic that computest the hotseat shift.

Fixes: 372014534
Flag: com.android.wm.shell.enable_bubble_bar
Test: Manual. Put device into 3 buttons navigation mode, force RTL.
Hotseat is placed next to the navigation buttons bar.

Change-Id: Ie7b6be11a093ffa4006182bdc0b73018ba799246
This commit is contained in:
mpodolian committed 2024-10-07 10:34:42 -07:00
1 parent 644aad280b
commit 3dcb19f33a
4 files changed
+16 -15

No files matched your search

@@ -879,9 +879,10 @@ public class TaskbarLauncherStateController {
mControllers.taskbarActivityContext)) {
return;
}
boolean isBubblesOnLeft = location.isOnLeft(isRtl(mLauncher.getResources()));
boolean isRtl = isRtl(mLauncher.getResources());
boolean isBubblesOnLeft = location.isOnLeft(isRtl);
int targetX = deviceProfile
.getHotseatTranslationXForBubbleBar(/* isNavbarOnRight= */ isBubblesOnLeft);
.getHotseatTranslationXForBubbleBar(isBubblesOnLeft, isRtl);
updateHotseatAndQsbTranslationX(targetX, animate);
}