summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/AlbumPage.java
diff options
context:
space:
mode:
authorRay Chen <raychen@google.com>2011-10-06 18:03:33 +0800
committerRay Chen <raychen@google.com>2011-10-13 15:42:46 +0800
commit83046ac7bbc8862ec082380af8d63fac179fec80 (patch)
treeb1a5bf0c243493209b549aa9fec497a645768509 /src/com/android/gallery3d/app/AlbumPage.java
parent782ad9e465b57f863c5a85784a35bb52e48484b0 (diff)
downloadandroid_packages_apps_Snap-83046ac7bbc8862ec082380af8d63fac179fec80.tar.gz
android_packages_apps_Snap-83046ac7bbc8862ec082380af8d63fac179fec80.tar.bz2
android_packages_apps_Snap-83046ac7bbc8862ec082380af8d63fac179fec80.zip
Fix 5417248 Gallery shows Details for the same video no matter which is selected
Change-Id: If221ac3d22adfd3a47d98923dab5c4c1e5ca263d
Diffstat (limited to 'src/com/android/gallery3d/app/AlbumPage.java')
-rw-r--r--src/com/android/gallery3d/app/AlbumPage.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java
index faaa800b5..eecb8e285 100644
--- a/src/com/android/gallery3d/app/AlbumPage.java
+++ b/src/com/android/gallery3d/app/AlbumPage.java
@@ -104,8 +104,8 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
private Future<Integer> mSyncTask = null;
- private GLView mRootPane = new GLView() {
- private float mMatrix[] = new float[16];
+ private final GLView mRootPane = new GLView() {
+ private final float mMatrix[] = new float[16];
@Override
protected void onLayout(
@@ -195,6 +195,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
}
} else {
mSelectionManager.toggle(item.getPath());
+ mDetailsSource.findIndex(slotIndex);
mAlbumView.invalidate();
}
}
@@ -288,7 +289,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
final PositionRepository repository =
PositionRepository.getInstance(mActivity);
mAlbumView.startTransition(new PositionProvider() {
- private Position mTempPosition = new Position();
+ private final Position mTempPosition = new Position();
public Position getPosition(long identity, Position target) {
Position p = repository.get(identity);
if (p != null) return p;
@@ -307,7 +308,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
: data.getIntArray(KEY_SET_CENTER);
final Random random = new Random();
mAlbumView.startTransition(new PositionProvider() {
- private Position mTempPosition = new Position();
+ private final Position mTempPosition = new Position();
public Position getPosition(long identity, Position target) {
Position p = repository.get(identity);
if (p != null) return p;