summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ViewImage.java
diff options
context:
space:
mode:
authorWei-Ta Chen <weita@google.com>2009-07-29 17:24:50 +0800
committerWei-Ta Chen <weita@google.com>2009-07-29 17:34:05 +0800
commitf2c7e983fafaf7639a6ad090a93d1892015777ed (patch)
tree416f68aef3d460ebea78a027874543ea501a5e73 /src/com/android/camera/ViewImage.java
parentd12ae2098b491bb55798758da8b698ffc625d62c (diff)
downloadLegacyCamera-f2c7e983fafaf7639a6ad090a93d1892015777ed.zip
LegacyCamera-f2c7e983fafaf7639a6ad090a93d1892015777ed.tar.gz
LegacyCamera-f2c7e983fafaf7639a6ad090a93d1892015777ed.tar.bz2
Fix http://b/2017388 by handling the corner case in computeSampleSize().
Diffstat (limited to 'src/com/android/camera/ViewImage.java')
-rw-r--r--src/com/android/camera/ViewImage.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/com/android/camera/ViewImage.java b/src/com/android/camera/ViewImage.java
index 7a6e863..02ef981 100644
--- a/src/com/android/camera/ViewImage.java
+++ b/src/com/android/camera/ViewImage.java
@@ -16,7 +16,6 @@
package com.android.camera;
-import com.android.camera.gallery.Cancelable;
import com.android.camera.gallery.IImage;
import com.android.camera.gallery.IImageList;
import com.android.camera.gallery.VideoObject;
@@ -27,11 +26,8 @@ import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.Matrix;
-import android.graphics.PixelFormat;
import android.net.Uri;
import android.os.Bundle;
-import android.os.Handler;
-import android.os.Message;
import android.preference.PreferenceManager;
import android.provider.MediaStore;
import android.util.AttributeSet;
@@ -44,7 +40,6 @@ import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
-import android.view.WindowManager.LayoutParams;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.AlphaAnimation;
@@ -55,8 +50,6 @@ import android.widget.Toast;
import android.widget.ZoomButtonsController;
import java.util.Random;
-import java.util.concurrent.CancellationException;
-import java.util.concurrent.ExecutionException;
// This activity can display a whole picture and navigate them in a specific
// gallery. It has two modes: normal mode and slide show mode. In normal mode
@@ -494,7 +487,8 @@ public class ViewImage extends Activity implements View.OnClickListener {
// need to get fancier and read in the fuller size image as the
// user starts to zoom.
// Originally the value is set to 480 in order to avoid OOM.
- // Now we set it to 2048 because of using purgeable Bitmaps.
+ // Now we set it to 2048 because of using
+ // native memory allocation for Bitmaps.
final int imageViewSize = 2048;
return imageViewSize;
}