diff options
author | Chih-Chung Chang <chihchung@google.com> | 2009-09-11 11:52:31 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2009-09-11 15:56:57 +0800 |
commit | 5ed81174af0ac1c26368e3d71b573369674ceb73 (patch) | |
tree | aaac4e61292c075dc65621e6406ea05421bddacb /src/com/android/camera/ViewImage.java | |
parent | 3c4e277ddbe3145094ca37f6e4a08174dd515616 (diff) | |
download | LegacyCamera-5ed81174af0ac1c26368e3d71b573369674ceb73.zip LegacyCamera-5ed81174af0ac1c26368e3d71b573369674ceb73.tar.gz LegacyCamera-5ed81174af0ac1c26368e3d71b573369674ceb73.tar.bz2 |
Add messages to help debug 2113527.
Change-Id: I964bb8a02831a1bd89d1c74dd26283cafec9dc78
Diffstat (limited to 'src/com/android/camera/ViewImage.java')
-rw-r--r-- | src/com/android/camera/ViewImage.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/camera/ViewImage.java b/src/com/android/camera/ViewImage.java index d2ac7e3..6cdab09 100644 --- a/src/com/android/camera/ViewImage.java +++ b/src/com/android/camera/ViewImage.java @@ -885,6 +885,8 @@ public class ViewImage extends Activity implements View.OnClickListener { private boolean init(Uri uri) { if (uri == null) return false; + Log.d(TAG, "init: uri = " + uri + + ", mParam = " + mParam); mAllImages = (mParam == null) ? buildImageListFromUri(uri) : ImageManager.makeImageList(getContentResolver(), mParam); @@ -1051,12 +1053,16 @@ public class ViewImage extends Activity implements View.OnClickListener { if (resultCode == RESULT_OK) { // The CropImage activity passes back the Uri of the // cropped image as the Action rather than the Data. + Log.d(TAG, "mSavedUri was " + mSavedUri); mSavedUri = Uri.parse(data.getAction()); // if onStart() runs before, then set the returned // image as currentImage. if (mAllImages != null) { IImage image = mAllImages.getImageForUri(mSavedUri); + Log.d(TAG, "data.getAction() = " + data.getAction() + + ", mSavedUri = " + mSavedUri + + ", image = " + image); mCurrentPosition = mAllImages.getImageIndex(image); setImage(mCurrentPosition, false); } |