summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author Sebastian Franco <fransebas@google.com> 2025-03-19 09:44:15 -0700
committer Sebastian Franco <fransebas@google.com> 2025-03-19 09:52:04 -0700
commitc7151f6559276ed5f06e17ae764ce75cb8714d5d (patch)
tree69de85512693d8568e5d96029e4a3838eee354c5 /src
parent92330ddaf7b685b3f2cd178e90849598070efbd1 (diff)
Swap hotseat padding when LTR and in Fixed Landscape
Fix: 404421611 Test: DumptTests Flag: com.android.launcher3.one_grid_specs Change-Id: Iba1a19f13d1e8ce164ca4f5b9306c7cdca369814
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/DeviceProfile.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java
index 090208a33c..de0fefa6ff 100644
--- a/src/com/android/launcher3/DeviceProfile.java
+++ b/src/com/android/launcher3/DeviceProfile.java
@@ -1950,13 +1950,18 @@ public class DeviceProfile {
int remainingSpaceOnSide = (availableWidthPxForHotseat - hotseatPlusQSBWidth) / 2;
hotseatBarPadding.set(
- (remainingSpaceOnSide + qsbWidth) + mInsets.left + workspacePadding.left
+ remainingSpaceOnSide + mInsets.left + workspacePadding.left
+ cellLayoutPaddingPx.left,
hotseatBarSizePx - hotseatBarBottomPadding - hotseatCellHeightPx,
remainingSpaceOnSide + mInsets.right + workspacePadding.right
+ cellLayoutPaddingPx.right,
hotseatBarBottomPadding
);
+ if (Utilities.isRtl(context.getResources())) {
+ hotseatBarPadding.right += qsbWidth;
+ } else {
+ hotseatBarPadding.left += qsbWidth;
+ }
} else if (isTaskbarPresent) {
// Center the QSB vertically with hotseat
int hotseatBarBottomPadding = getHotseatBarBottomPadding();