summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data/SnailSource.java
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-10-02 13:30:09 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-02 14:25:05 -0700
commit7067fa61419d004d4f7d016556ca40512a26a118 (patch)
tree4f02b8bb60441cd1b88e39684f5a2886a48d4636 /src/com/android/gallery3d/data/SnailSource.java
parent1ebac746eb319663f44fe9fbb7786cb9bb87489b (diff)
downloadandroid_packages_apps_Snap-7067fa61419d004d4f7d016556ca40512a26a118.tar.gz
android_packages_apps_Snap-7067fa61419d004d4f7d016556ca40512a26a118.tar.bz2
android_packages_apps_Snap-7067fa61419d004d4f7d016556ca40512a26a118.zip
Show Camera placeholder as first filmstrip item in roll
Bug: 7272674 The camera roll filmstrip view now shows a shortcut to launch the camera when opened from the Gallery app. Note: the edits to SnailAlbum and SnailSource were made to allow sharing code between SingleItemAlbum and SnailAlbum Change-Id: I1bd2f3db99138c4b79a41c9c5baee46704cd18e0
Diffstat (limited to 'src/com/android/gallery3d/data/SnailSource.java')
-rw-r--r--src/com/android/gallery3d/data/SnailSource.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/data/SnailSource.java b/src/com/android/gallery3d/data/SnailSource.java
index 7f971d3e0..5c690ccdb 100644
--- a/src/com/android/gallery3d/data/SnailSource.java
+++ b/src/com/android/gallery3d/data/SnailSource.java
@@ -42,8 +42,8 @@ public class SnailSource extends MediaSource {
switch (mMatcher.match(path)) {
case SNAIL_ALBUM:
String itemPath = "/snail/item/" + mMatcher.getVar(0);
- MediaItem item =
- (MediaItem) dataManager.getMediaObject(itemPath);
+ SnailItem item =
+ (SnailItem) dataManager.getMediaObject(itemPath);
return new SnailAlbum(path, item);
case SNAIL_ITEM: {
int id = mMatcher.getIntVar(0);