mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
use the local variable for getting current page index
This commit is contained in:
@@ -304,7 +304,7 @@ public class ViewPagerActivity extends AppCompatActivity
|
||||
}
|
||||
|
||||
private File getCurrentFile() {
|
||||
return new File(photos.get(pager.getCurrentItem()));
|
||||
return new File(photos.get(pos));
|
||||
}
|
||||
|
||||
private void addUndoBottomMargin() {
|
||||
@@ -326,6 +326,7 @@ public class ViewPagerActivity extends AppCompatActivity
|
||||
@Override
|
||||
public void onPageSelected(int position) {
|
||||
updateActionbarTitle();
|
||||
pos = position;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user