diff options
author | Dan Sandler <dsandler@android.com> | 2014-08-07 09:21:06 -0400 |
---|---|---|
committer | Dan Sandler <dsandler@android.com> | 2014-08-07 09:24:03 -0400 |
commit | deb0d11a43f0503d8556b44031f4ab6e75b39bd8 (patch) | |
tree | e5dc3e85cae6d96e200610bf366c2c274482e179 | |
parent | 04e5f72cdb7bbe494e4b330b393388d1e0b18f74 (diff) | |
download | frameworks_base-deb0d11a43f0503d8556b44031f4ab6e75b39bd8.zip frameworks_base-deb0d11a43f0503d8556b44031f4ab6e75b39bd8.tar.gz frameworks_base-deb0d11a43f0503d8556b44031f4ab6e75b39bd8.tar.bz2 |
Fix screenshots.
Bug: 16861182
Change-Id: I9433cb4a5cc100d85f06eeed18ade3ead5ba8188
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java | 3 |
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; |