summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ThumbnailController.java
diff options
context:
space:
mode:
authorOwen Lin <>2009-04-03 16:20:08 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-03 16:20:08 -0700
commit101d528d59f447847d5c6b7578642132c2b76f4f (patch)
tree4d0c8ac651ed06db6351b0466be73aa9b2230f08 /src/com/android/camera/ThumbnailController.java
parent3321d40ad1ad69070478e43c582d9289257cd232 (diff)
downloadLegacyCamera-101d528d59f447847d5c6b7578642132c2b76f4f.zip
LegacyCamera-101d528d59f447847d5c6b7578642132c2b76f4f.tar.gz
LegacyCamera-101d528d59f447847d5c6b7578642132c2b76f4f.tar.bz2
AI 144530: Refactor the huge codes in ImageManager. Extract member classes to top level.
Fix style issue. Automated import of CL 144530
Diffstat (limited to 'src/com/android/camera/ThumbnailController.java')
-rw-r--r--src/com/android/camera/ThumbnailController.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/camera/ThumbnailController.java b/src/com/android/camera/ThumbnailController.java
index 2851823..bcf41bf 100644
--- a/src/com/android/camera/ThumbnailController.java
+++ b/src/com/android/camera/ThumbnailController.java
@@ -16,6 +16,8 @@
package com.android.camera;
+import com.android.camera.gallery.Util;
+
import android.content.ContentResolver;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
@@ -189,7 +191,7 @@ public class ThumbnailController {
LayoutParams layoutParams = mButton.getLayoutParams();
final int miniThumbWidth = layoutParams.width - 2 * PADDING_WIDTH;
final int miniThumbHeight = layoutParams.height - 2 * PADDING_HEIGHT;
- mThumb = ImageManager.extractMiniThumb(
+ mThumb = Util.extractMiniThumb(
original, miniThumbWidth, miniThumbHeight, false);
Drawable[] vignetteLayers = new Drawable[2];