diff options
author | Wu-cheng Li <wuchengli@google.com> | 2009-05-07 16:07:10 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2009-05-07 16:16:08 +0800 |
commit | 8463583af0c3a049ab2b691bb3e4a603ee4d812c (patch) | |
tree | dfe42a50ff4533b7abe66ea76f36ab27cd1dc417 /src/com/android/camera/ImageGallery.java | |
parent | f340c78f45cff69d167048744efac533db468565 (diff) | |
download | LegacyCamera-8463583af0c3a049ab2b691bb3e4a603ee4d812c.zip LegacyCamera-8463583af0c3a049ab2b691bb3e4a603ee4d812c.tar.gz LegacyCamera-8463583af0c3a049ab2b691bb3e4a603ee4d812c.tar.bz2 |
Change type of "return-data" type to Boolean.
Diffstat (limited to 'src/com/android/camera/ImageGallery.java')
-rw-r--r-- | src/com/android/camera/ImageGallery.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/com/android/camera/ImageGallery.java b/src/com/android/camera/ImageGallery.java index 4c2b3d4..ee76ecc 100644 --- a/src/com/android/camera/ImageGallery.java +++ b/src/com/android/camera/ImageGallery.java @@ -75,7 +75,6 @@ public class ImageGallery extends Activity implements boolean mSortAscending = false; private View mNoImagesView; public static final int CROP_MSG = 2; - public static final int VIEW_MSG = 3; private Dialog mMediaScanningDialog; @@ -259,12 +258,11 @@ public class ImageGallery extends Activity implements long size = MenuHelper.getImageFileSize(img); if (size < 0) { - // return if there image file is not available. + // Return if the image file is not available. return; } if (size > mVideoSizeLimit) { - DialogInterface.OnClickListener buttonListener = new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { @@ -297,8 +295,9 @@ public class ImageGallery extends Activity implements startActivityForResult(cropIntent, CROP_MSG); } else { Intent result = new Intent(null, img.fullSizeImageUri()); - if (myExtras != null && myExtras.getString("return-data") != null) { - Bitmap bitmap = img.fullSizeBitmap(1000); + if (myExtras != null && myExtras.getBoolean("return-data")) { + // The size of a transaction should be below 100K. + Bitmap bitmap = img.fullSizeBitmap(192); if (bitmap != null) { result.putExtra("data", bitmap); } @@ -334,11 +333,6 @@ public class ImageGallery extends Activity implements } break; } - case VIEW_MSG: { - IImage img = mAllImages.getImageForUri(data.getData()); - launchCropperOrFinish(img); - break; - } } } |