diff --git a/packages/SystemUI/res/layout/long_screenshot.xml b/packages/SystemUI/res/layout/long_screenshot.xml index 7ba28a8483c39..b2b99a78de6a0 100644 --- a/packages/SystemUI/res/layout/long_screenshot.xml +++ b/packages/SystemUI/res/layout/long_screenshot.xml @@ -72,10 +72,10 @@ viewRatio) { // Image is full width and height is constrained, compute extra padding to inform @@ -423,7 +425,7 @@ public class LongScreenshotActivity extends Activity { float imageHeight = mPreview.getHeight() * viewRatio / imageRatio; int extraPadding = (int) (mPreview.getHeight() - imageHeight) / 2; mCropView.setExtraPadding(extraPadding, extraPadding); - mCropView.setImageWidth(mPreview.getWidth()); + mCropView.setImageWidth(previewWidth); } else { // Image is full height mCropView.setExtraPadding(0, 0);