summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/screenshot
diff options
context:
space:
mode:
authorDan Sandler <dsandler@android.com>2014-08-07 09:21:06 -0400
committerDan Sandler <dsandler@android.com>2014-08-07 09:24:03 -0400
commitdeb0d11a43f0503d8556b44031f4ab6e75b39bd8 (patch)
treee5dc3e85cae6d96e200610bf366c2c274482e179 /packages/SystemUI/src/com/android/systemui/screenshot
parent04e5f72cdb7bbe494e4b330b393388d1e0b18f74 (diff)
downloadframeworks_base-deb0d11a43f0503d8556b44031f4ab6e75b39bd8.zip
frameworks_base-deb0d11a43f0503d8556b44031f4ab6e75b39bd8.tar.gz
frameworks_base-deb0d11a43f0503d8556b44031f4ab6e75b39bd8.tar.bz2
Fix screenshots.
Bug: 16861182 Change-Id: I9433cb4a5cc100d85f06eeed18ade3ead5ba8188
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/screenshot')
-rw-r--r--packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java3
1 files changed, 3 insertions, 0 deletions
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 @@ class GlobalScreenshot {
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;