diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-09-06 17:14:02 -0700 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2012-09-09 00:15:48 -0700 |
commit | 6e3cdcf8604dd202b9de08e0942d40d8cbbd26f5 (patch) | |
tree | f7efb788e566c54a1b7668d6a5fb6b4a8b4cdf22 /src/com/android/gallery3d/data/LocalAlbum.java | |
parent | b05d8805d94dc3d60a0e1b966cf2c0cd58109938 (diff) | |
download | android_packages_apps_Snap-6e3cdcf8604dd202b9de08e0942d40d8cbbd26f5.tar.gz android_packages_apps_Snap-6e3cdcf8604dd202b9de08e0942d40d8cbbd26f5.tar.bz2 android_packages_apps_Snap-6e3cdcf8604dd202b9de08e0942d40d8cbbd26f5.zip |
Reskin: switching between filmstrip and grid in album
Bug: 7050303
Bug: 6541425
Allows switching between the filmstrip and the grid views
within albums and launches camera roll in filmstrip mode
by default. Also fixes animation issue when animating from
full-screen to grid view.
Change-Id: I2a37b92c129cc090fd807973f7e3e82fed207cd3
Diffstat (limited to 'src/com/android/gallery3d/data/LocalAlbum.java')
-rw-r--r-- | src/com/android/gallery3d/data/LocalAlbum.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/LocalAlbum.java b/src/com/android/gallery3d/data/LocalAlbum.java index fed704078..eaf1e54fc 100644 --- a/src/com/android/gallery3d/data/LocalAlbum.java +++ b/src/com/android/gallery3d/data/LocalAlbum.java @@ -91,6 +91,11 @@ public class LocalAlbum extends MediaSet { } @Override + public boolean isCameraRoll() { + return mBucketId == MediaSetUtils.CAMERA_BUCKET_ID; + } + + @Override public Uri getContentUri() { if (mIsImage) { return MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon() |