summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Keoshkerian <mattak@google.com>2013-09-13 14:06:07 -0700
committerMatt Keoshkerian <mattak@google.com>2013-09-13 21:38:14 +0000
commitbcf946beebe1215b43c1196739a2d9391dae14b9 (patch)
tree6bf77321a4287c41755d2ef2f3cfcb02aadd0c50
parentf0fac25e570ef98dd9d5df34cf8437888cd118cd (diff)
downloadphotoviewer-bcf946beebe1215b43c1196739a2d9391dae14b9.tar.gz
Add methodPhotoViewFragment to expose its position.
This position is set by the ViewPager, which indicates the index of this fragment in the pager. Required for b/9759537. Change-Id: I6309f863c38e7130f5ff97278a90cfbe90f10e86 (cherry picked from commit 3c01ba50680cfd6bf03503bfb50697a4fb2ef155)
-rw-r--r--src/com/android/ex/photo/fragments/PhotoViewFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/ex/photo/fragments/PhotoViewFragment.java b/src/com/android/ex/photo/fragments/PhotoViewFragment.java
index dd69c50..eca0850 100644
--- a/src/com/android/ex/photo/fragments/PhotoViewFragment.java
+++ b/src/com/android/ex/photo/fragments/PhotoViewFragment.java
@@ -570,6 +570,10 @@ public class PhotoViewFragment extends Fragment implements
}
}
+ public int getPosition() {
+ return mPosition;
+ }
+
public ProgressBarWrapper getPhotoProgressBar() {
return mPhotoProgressBar;
}