diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-09-17 15:24:59 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-17 15:24:59 -0700 |
commit | ea412e3624c23a65812e86e1d2bf2b5ae7b1ed0a (patch) | |
tree | 7697558b60a2b135cd2637d405c1ddeca7539c7b /src | |
parent | bcec1d75de1471623c8efdbaddaa8c76dc379b96 (diff) | |
parent | 9193ac8ef029767254e4c3dfd49f73156c307f55 (diff) | |
download | android_packages_apps_Snap-ea412e3624c23a65812e86e1d2bf2b5ae7b1ed0a.tar.gz android_packages_apps_Snap-ea412e3624c23a65812e86e1d2bf2b5ae7b1ed0a.tar.bz2 android_packages_apps_Snap-ea412e3624c23a65812e86e1d2bf2b5ae7b1ed0a.zip |
Merge "Fix bugs relating to grid/filmstrip switching" into gb-ub-photos-arches
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/gallery3d/app/AlbumPage.java | 1 | ||||
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 1 | ||||
-rw-r--r-- | src/com/android/gallery3d/data/FilterDeleteSet.java | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java index 298e083c6..fade00c47 100644 --- a/src/com/android/gallery3d/app/AlbumPage.java +++ b/src/com/android/gallery3d/app/AlbumPage.java @@ -567,6 +567,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster return true; } case R.id.action_filmstrip: { + if (mAlbumDataAdapter.size() < 1) return true; int targetPhoto = mSlotView.getVisibleStart(); prepareAnimationBackToFilmstrip(targetPhoto); if(mLaunchedFromPhotoPage) { diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index cb6bd705c..df61f89e2 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -352,7 +352,6 @@ public class PhotoPage extends ActivityState implements Log.w(TAG, "failed to restore " + mSetPathString); } if (itemPath == null) { - mMediaSet.reload(); if (mMediaSet.getMediaItemCount() > 0) { itemPath = mMediaSet.getMediaItem(mCurrentIndex, 1) .get(0).getPath(); diff --git a/src/com/android/gallery3d/data/FilterDeleteSet.java b/src/com/android/gallery3d/data/FilterDeleteSet.java index b2b84e86f..fc44d48c4 100644 --- a/src/com/android/gallery3d/data/FilterDeleteSet.java +++ b/src/com/android/gallery3d/data/FilterDeleteSet.java @@ -69,6 +69,7 @@ public class FilterDeleteSet extends MediaSet implements ContentListener { super(path, INVALID_DATA_VERSION); mBaseSet = baseSet; mBaseSet.addContentListener(this); + mMediaItemCount = mBaseSet.getMediaItemCount() - mCurrent.size(); } @Override |