commit | 9f2b71b8dacf6a8d340bb0a81f8db48d1408418d | [log] [tgz] |
---|---|---|
author | Dan Sandler <dsandler@android.com> | Thu Aug 07 09:21:06 2014 -0400 |
committer | The Android Automerger <android-build@android.com> | Thu Aug 07 11:51:03 2014 -0700 |
tree | 6296bf69bbca09c5f1b105f4c1e94a11ba4bb851 | |
parent | 4f7cbaa7bee414184437822b805f4766349d9348 [diff] |
Fix screenshots. Bug: 16861182 Change-Id: I9433cb4a5cc100d85f06eeed18ade3ead5ba8188
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java index c559253..d4c8ce3 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
@@ -429,6 +429,9 @@ try { panelWidth = r.getDimensionPixelSize(R.dimen.notification_panel_width); } catch (Resources.NotFoundException e) { + } + if (panelWidth <= 0) { + // includes notification_panel_width==match_parent (-1) panelWidth = mDisplayMetrics.widthPixels; } mPreviewWidth = panelWidth;