diff --git a/packages/SystemUI/res/layout/long_screenshot.xml b/packages/SystemUI/res/layout/long_screenshot.xml index 19bcf95922c2b..6d44138c53546 100644 --- a/packages/SystemUI/res/layout/long_screenshot.xml +++ b/packages/SystemUI/res/layout/long_screenshot.xml @@ -48,10 +48,10 @@ viewRatio) { // Image is full width and height is constrained, compute extra padding to inform @@ -417,7 +419,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);