mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 06:28:00 +01:00
use the local variable for getting current page index
This commit is contained in:
parent
dd1dd70aa4
commit
6af43c0b81
1 changed files with 2 additions and 1 deletions
|
@ -304,7 +304,7 @@ public class ViewPagerActivity extends AppCompatActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
private File getCurrentFile() {
|
private File getCurrentFile() {
|
||||||
return new File(photos.get(pager.getCurrentItem()));
|
return new File(photos.get(pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addUndoBottomMargin() {
|
private void addUndoBottomMargin() {
|
||||||
|
@ -326,6 +326,7 @@ public class ViewPagerActivity extends AppCompatActivity
|
||||||
@Override
|
@Override
|
||||||
public void onPageSelected(int position) {
|
public void onPageSelected(int position) {
|
||||||
updateActionbarTitle();
|
updateActionbarTitle();
|
||||||
|
pos = position;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue