diff options
author | Dan Sandler <dsandler@android.com> | 2014-08-07 14:05:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-07 12:44:12 +0000 |
commit | a909b28a132b25fcfccd30baedc084e0a2353108 (patch) | |
tree | 9e85be0049e413ada6ff8fd1926e8d4c6d7da9ec /packages | |
parent | 0da70938403650c5517b3da14b6c3fe0ef293e4a (diff) | |
parent | deb0d11a43f0503d8556b44031f4ab6e75b39bd8 (diff) | |
download | frameworks_base-a909b28a132b25fcfccd30baedc084e0a2353108.zip frameworks_base-a909b28a132b25fcfccd30baedc084e0a2353108.tar.gz frameworks_base-a909b28a132b25fcfccd30baedc084e0a2353108.tar.bz2 |
Merge "Fix screenshots." into lmp-dev
Diffstat (limited to 'packages')
-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; |