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

Commit c61e393f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Correct landscape mode color extraction rectangle" into sc-dev

parents aef3a3c4 ca6f2475
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -339,7 +339,7 @@ public class LauncherAppWidgetHostView extends NavigableAppWidgetHostView
        // The layout depends on the orientation.
        if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
            int parentViewWidth = parentView == null ? 0 : parentView.getWidth();
            xOffset = screenHeight - mWorkspace.getPaddingRight() - parentViewWidth;
            xOffset = screenWidth - mWorkspace.getPaddingRight() - parentViewWidth;
        } else {
            int parentViewPaddingLeft = parentView == null ? 0 : parentView.getPaddingLeft();
            xOffset = mWorkspace.getPaddingLeft() + parentViewPaddingLeft;