Swap hotseat padding when LTR and in Fixed Landscape
Fix: 404421611 Test: DumptTests Flag: com.android.launcher3.one_grid_specs Change-Id: Iba1a19f13d1e8ce164ca4f5b9306c7cdca369814
This commit is contained in:
1 parent
92330ddaf7
commit
c7151f6559
1 file changed
+6
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user