Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36c1b55e authored by Jeremy Sim's avatar Jeremy Sim Committed by Android (Google) Code Review
Browse files

Merge "Fix small positioning bug with DWB banner in landscape"

parents e93ba9f5 87fad7b9
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -352,8 +352,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) {