diff options
| author | Riley Andrews <riandrews@android.com> | 2015-11-01 23:36:04 -0800 |
|---|---|---|
| committer | Riley Andrews <riandrews@google.com> | 2015-11-03 17:46:15 +0000 |
| commit | 8cee7c17119b204be88860feb812f2374d0de732 (patch) | |
| tree | 5800445b3f2808335177932a24f23c9ec066a881 /core/java | |
| parent | a975732a8302893a40cdc444f893bf09b7669173 (diff) | |
Limit persistent ashmem backed fds to a minimum of 128kB.
Bug 25256717
Change-Id: Ieb356006df0a6545b89de44d3d8fd4b46312b3b8
Signed-off-by: Riley Andrews <riandrews@google.com>
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/Notification.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index f3f24280d435..a2e8fd134996 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -3969,7 +3969,9 @@ public class Notification implements Parcelable @Override public void purgeResources() { super.purgeResources(); - if (mPicture != null && mPicture.isMutable()) { + if (mPicture != null && + mPicture.isMutable() && + mPicture.getAllocationByteCount() >= (128 * (1 << 10))) { mPicture = mPicture.createAshmemBitmap(); } if (mBigLargeIcon != null) { |
