diff options
author | Wei-Ta Chen <weita@google.com> | 2009-07-20 12:37:36 +0800 |
---|---|---|
committer | Wei-Ta Chen <weita@google.com> | 2009-07-20 12:43:03 +0800 |
commit | 026dff889c80763fc322ed03e2d3a76750320138 (patch) | |
tree | 0fd1c2dfbd6a026304dec594fc884e1da5fc1c4d /src/com/android/camera/Util.java | |
parent | 6a598c238e4184bffdffad17ed016da069aa4b56 (diff) | |
download | LegacyCamera-026dff889c80763fc322ed03e2d3a76750320138.zip LegacyCamera-026dff889c80763fc322ed03e2d3a76750320138.tar.gz LegacyCamera-026dff889c80763fc322ed03e2d3a76750320138.tar.bz2 |
Fix http://b/1907995 by using native allocation in BitmapFactory.
Diffstat (limited to 'src/com/android/camera/Util.java')
-rw-r--r-- | src/com/android/camera/Util.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/camera/Util.java b/src/com/android/camera/Util.java index d709aba..356426f 100644 --- a/src/com/android/camera/Util.java +++ b/src/com/android/camera/Util.java @@ -483,10 +483,9 @@ public class Util { } // Returns Options that set the puregeable flag for Bitmap decode. - public static BitmapFactory.Options createPurgeableOption() { + public static BitmapFactory.Options createNativeAllocOptions() { BitmapFactory.Options options = new BitmapFactory.Options(); - options.inPurgeable = true; - options.inInputShareable = true; + options.inNativeAlloc = true; return options; } } |