commit | fe9714c433347c9cd18b8cee9a42d9423233dafb | [log] [tgz] |
---|---|---|
author | Uday Kiran jandhyala <ukiran@codeaurora.org> | Wed May 21 18:03:12 2014 +0530 |
committer | Linux Build Service Account <lnxbuild@localhost> | Tue Nov 04 08:23:14 2014 -0700 |
tree | 1d0f95aa2c4c4291e99a48d0fc6bcb676f66d32b | |
parent | 07a1c98abfa8f4816cfa66efa06bf331d99e65ee [diff] |
Use WeakReferenes to reduce Bitmap memory footprint Use HashMap<Integer, WeakReference<Drawable>> instead of just HashMap<Integer, Drawable> Without this, references are still being held for Bitmap drawables, thereby after few Photo edits, OutOfMemoryException is raised and Gallery crashes Change-Id: If91f950986bd816d5571a0d51a7cb9522226e270