summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/Util.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2009-04-16 18:42:03 +0800
committerOwen Lin <owenlin@google.com>2009-04-16 19:14:45 +0800
commitd30b5877fbdedcebc0af5cccffddccfe9b11cb0b (patch)
tree21775eba34c163d2743fc9b2ce81cc7f8349429a /src/com/android/camera/Util.java
parentd857d2ae4601129d8f4bde1f9ec2ca06ffa28f43 (diff)
downloadLegacyCamera-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.java8
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;