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

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

Change-Id: I4db7237a56f48797517c655d36e803c4deaf561f
This commit is contained in:
TreeHugger Robot
2021-04-20 16:03:28 +00:00
committed by Automerger Merge Worker
@@ -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;