diff options
author | Owen Lin <owenlin@google.com> | 2009-04-16 18:42:03 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2009-04-16 19:14:45 +0800 |
commit | d30b5877fbdedcebc0af5cccffddccfe9b11cb0b (patch) | |
tree | 21775eba34c163d2743fc9b2ce81cc7f8349429a /src/com/android/camera/Util.java | |
parent | d857d2ae4601129d8f4bde1f9ec2ca06ffa28f43 (diff) | |
download | LegacyCamera-d30b5877fbdedcebc0af5cccffddccfe9b11cb0b.zip LegacyCamera-d30b5877fbdedcebc0af5cccffddccfe9b11cb0b.tar.gz LegacyCamera-d30b5877fbdedcebc0af5cccffddccfe9b11cb0b.tar.bz2 |
Refactoring the code.
Diffstat (limited to 'src/com/android/camera/Util.java')
-rw-r--r-- | src/com/android/camera/Util.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/android/camera/Util.java b/src/com/android/camera/Util.java index 673aac9..0d44d08 100644 --- a/src/com/android/camera/Util.java +++ b/src/com/android/camera/Util.java @@ -31,8 +31,8 @@ import android.util.Log; import java.io.ByteArrayOutputStream; import java.io.Closeable; -import java.io.IOException; import java.io.FileDescriptor; +import java.io.IOException; /** * Collection of utility functions used in this package. @@ -326,8 +326,7 @@ public class Util { options.inSampleSize = 1; if (targetWidthHeight != -1) { options.inJustDecodeBounds = true; - BitmapManager.instance().decodeFileDescriptor( - fd, null, options); + BitmapManager.instance().decodeFileDescriptor(fd, options); if (options.mCancel || options.outWidth == -1 || options.outHeight == -1) { return null; @@ -339,8 +338,7 @@ public class Util { options.inDither = false; options.inPreferredConfig = Bitmap.Config.ARGB_8888; - b = BitmapManager.instance() - .decodeFileDescriptor(fd, null, options); + b = BitmapManager.instance().decodeFileDescriptor(fd, options); } catch (OutOfMemoryError ex) { Log.e(TAG, "Got oom exception ", ex); return null; |