summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Copp <adamcopp@google.com>2012-09-19 12:20:44 +0100
committerAdam Copp <adamcopp@google.com>2012-09-19 12:20:44 +0100
commit0b0df704f2214cb589643d9d075396eadd0f77e5 (patch)
tree86b907e3b4957232a8105f9bd4e4f05fda1d4fe5
parent685658bb07dc786536e038060fdeec975aa62176 (diff)
downloadandroid_frameworks_ex-0b0df704f2214cb589643d9d075396eadd0f77e5.tar.gz
android_frameworks_ex-0b0df704f2214cb589643d9d075396eadd0f77e5.tar.bz2
android_frameworks_ex-0b0df704f2214cb589643d9d075396eadd0f77e5.zip
Cursor listeners can use setPhotoIndex meaningfully
Cursor listeners can now use setPhotoIndex and have the changes take effect immediately. It appears that nobody in code search will have their code broken by this change. Change-Id: I76afd8545310c24f05307d38ed03081914a17987
-rw-r--r--photoviewer/src/com/android/ex/photo/PhotoViewActivity.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java
index e0d8292..5e45f5e 100644
--- a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java
+++ b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java
@@ -323,6 +323,9 @@ public class PhotoViewActivity extends Activity implements
}
mIsEmpty = false;
+ mAdapter.swapCursor(data);
+ notifyCursorListeners(data);
+
// set the selected photo
int itemIndex = mPhotoIndex;
@@ -331,9 +334,6 @@ public class PhotoViewActivity extends Activity implements
itemIndex = 0;
}
- mAdapter.swapCursor(data);
- notifyCursorListeners(data);
-
mViewPager.setCurrentItem(itemIndex, false);
setViewActivated();
}