Merge "Fix small positioning bug with DWB banner in landscape" into tm-dev am: cab1ef1a9d

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17263136

Change-Id: I773868f727cf4316109b5174bed3cea952798846
This commit is contained in:
Jeremy Sim
2022-03-22 00:38:28 +00:00
committed by Automerger Merge Worker
@@ -334,8 +334,14 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler {
// Set translations
if (deviceProfile.isLandscape) {
if (desiredTaskId == splitBounds.rightBottomTaskId) {
translationX = ((taskViewWidth * splitBounds.leftTaskPercent)
+ (taskViewWidth * splitBounds.dividerWidthPercent));
float leftTopTaskPercent = splitBounds.appsStackedVertically
? splitBounds.topTaskPercent
: splitBounds.leftTaskPercent;
float dividerThicknessPercent = splitBounds.appsStackedVertically
? splitBounds.dividerHeightPercent
: splitBounds.dividerWidthPercent;
translationX = ((taskViewWidth * leftTopTaskPercent)
+ (taskViewWidth * dividerThicknessPercent));
}
} else {
if (desiredTaskId == splitBounds.leftTopTaskId) {