summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-10-08 19:26:54 -0700
committerBobby Georgescu <georgescu@google.com>2012-10-08 19:26:54 -0700
commit7a84c578a4b3bea9eebb0b21ac161c18aad49346 (patch)
tree4f0270bf81afd62a48c0f9448b17f053e05bc221 /src
parenta29eeac8993b221d98cffbec5583b5cba1921c89 (diff)
downloadandroid_packages_apps_Gallery2-7a84c578a4b3bea9eebb0b21ac161c18aad49346.tar.gz
android_packages_apps_Gallery2-7a84c578a4b3bea9eebb0b21ac161c18aad49346.tar.bz2
android_packages_apps_Gallery2-7a84c578a4b3bea9eebb0b21ac161c18aad49346.zip
Start Camera album in grid mode
Bug: 7304603 Change-Id: I537f74cd0d34b4b095c031572f8d817dd49b6388
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/app/AlbumSetPage.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/app/AlbumSetPage.java b/src/com/android/gallery3d/app/AlbumSetPage.java
index c8c351496..eaf91451a 100644
--- a/src/com/android/gallery3d/app/AlbumSetPage.java
+++ b/src/com/android/gallery3d/app/AlbumSetPage.java
@@ -214,9 +214,8 @@ public class AlbumSetPage extends ActivityState implements
private static boolean albumShouldOpenInFilmstrip(MediaSet album) {
int itemCount = album.getMediaItemCount();
ArrayList<MediaItem> list = (itemCount == 1) ? album.getMediaItem(0, 1) : null;
- return (album.isCameraRoll() && itemCount > 0)
- // open in film strip only if there's one item in the album and the item exists
- || (list != null && !list.isEmpty());
+ // open in film strip only if there's one item in the album and the item exists
+ return (list != null && !list.isEmpty());
}
WeakReference<Toast> mEmptyAlbumToast = null;