Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5d86db5 authored by Uday Kiran jandhyala's avatar Uday Kiran jandhyala Committed by emancebo
Browse files

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

Conflicts:
	src/com/android/gallery3d/filtershow/filters/ImageFilterBorder.java

Change-Id: If91f950986bd816d5571a0d51a7cb9522226e270
parent 4f8d14a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment