diff options
author | Wu-cheng Li <wuchengli@google.com> | 2012-10-14 22:35:26 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-14 22:35:26 -0700 |
commit | 20d1fd5174e05f31032956bea6b5e3fe559b5747 (patch) | |
tree | faeab7329650e946b1101e3aee1e90f4f39c57a6 | |
parent | d0a0adeaf520d8ce2d635a646faeeff68f75d790 (diff) | |
parent | bb9b933ce04eb50c85c0c592ebbc85d00dcbf47f (diff) | |
download | android_packages_apps_Snap-20d1fd5174e05f31032956bea6b5e3fe559b5747.tar.gz android_packages_apps_Snap-20d1fd5174e05f31032956bea6b5e3fe559b5747.tar.bz2 android_packages_apps_Snap-20d1fd5174e05f31032956bea6b5e3fe559b5747.zip |
am 7f1ad54d: Merge "Add stitching panorama image to secure album." into gb-ub-photos-arches
* commit '7f1ad54dc6516d7b5cd7d5cabc6b96346186fce8':
Add stitching panorama image to secure album.
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 3 | ||||
-rw-r--r-- | src/com/android/gallery3d/data/SecureAlbum.java | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index 5527c9e21..b11229f88 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -562,6 +562,9 @@ public class PhotoPage extends ActivityState implements mProgressBar = new PhotoPageProgressBar(mActivity, galleryRoot); mProgressListener = new UpdateProgressListener(); progressManager.addChangeListener(mProgressListener); + if (mSecureAlbum != null) { + progressManager.addChangeListener(mSecureAlbum); + } } } } diff --git a/src/com/android/gallery3d/data/SecureAlbum.java b/src/com/android/gallery3d/data/SecureAlbum.java index c666bdc75..0a8c5a827 100644 --- a/src/com/android/gallery3d/data/SecureAlbum.java +++ b/src/com/android/gallery3d/data/SecureAlbum.java @@ -24,12 +24,13 @@ import android.provider.MediaStore.MediaColumns; import android.provider.MediaStore.Video; import com.android.gallery3d.app.GalleryApp; +import com.android.gallery3d.app.StitchingChangeListener; import com.android.gallery3d.util.MediaSetUtils; import java.util.ArrayList; // This class lists all media items added by the client. -public class SecureAlbum extends MediaSet { +public class SecureAlbum extends MediaSet implements StitchingChangeListener { @SuppressWarnings("unused") private static final String TAG = "SecureAlbum"; private static final String[] PROJECTION = {MediaColumns._ID}; @@ -183,4 +184,18 @@ public class SecureAlbum extends MediaSet { public boolean isLeafAlbum() { return true; } + + @Override + public void onStitchingQueued(Uri uri) { + int id = Integer.parseInt(uri.getLastPathSegment()); + addMediaItem(false, id); + } + + @Override + public void onStitchingResult(Uri uri) { + } + + @Override + public void onStitchingProgress(Uri uri, final int progress) { + } } |