summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/screenshot
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-06-02 12:18:05 -0700
committerWinson Chung <winsonc@google.com>2015-06-02 12:18:05 -0700
commit1b87be470af068cd9ee3e1d629df13813c584266 (patch)
tree3f7551442576515e3124058e88149a6e6f8667fa /packages/SystemUI/src/com/android/systemui/screenshot
parentdaa4a78682dfc838602f870aabb7fd003c919477 (diff)
downloadframeworks_base-1b87be470af068cd9ee3e1d629df13813c584266.zip
frameworks_base-1b87be470af068cd9ee3e1d629df13813c584266.tar.gz
frameworks_base-1b87be470af068cd9ee3e1d629df13813c584266.tar.bz2
Use immutable ashmem bitmaps in screenshot notifications.
Bug 21037890 Change-Id: Ib5ed32bb475e1e8f7b3407ac72f53a6d640ffad1
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/screenshot')
-rw-r--r--packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
index 6d02365..9e3cf37 100644
--- a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
+++ b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
@@ -180,7 +180,7 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi
.setColor(r.getColor(com.android.internal.R.color.system_notification_accent_color));
mNotificationStyle = new Notification.BigPictureStyle()
- .bigPicture(picture);
+ .bigPicture(picture.createAshmemBitmap());
mNotificationBuilder.setStyle(mNotificationStyle);
// For "public" situations we want to show all the same info but
@@ -203,7 +203,7 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi
// On the tablet, the large icon makes the notification appear as if it is clickable (and
// on small devices, the large icon is not shown) so defer showing the large icon until
// we compose the final post-save notification below.
- mNotificationBuilder.setLargeIcon(icon);
+ mNotificationBuilder.setLargeIcon(icon.createAshmemBitmap());
// But we still don't set it for the expanded view, allowing the smallIcon to show here.
mNotificationStyle.bigLargeIcon((Bitmap) null);
}