mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-29 16:08:00 +01:00
properly open the video item at viewpager
This commit is contained in:
parent
e206fa92ca
commit
b36d06aafa
1 changed files with 1 additions and 1 deletions
|
@ -249,6 +249,7 @@ public class ViewPagerActivity extends AppCompatActivity
|
||||||
|
|
||||||
private List<Media> getMedia() {
|
private List<Media> getMedia() {
|
||||||
final List<Media> media = new ArrayList<>();
|
final List<Media> media = new ArrayList<>();
|
||||||
|
int j = 0;
|
||||||
for (int i = 0; i < 2; i++) {
|
for (int i = 0; i < 2; i++) {
|
||||||
Uri uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
|
Uri uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
|
||||||
if (i == 1) {
|
if (i == 1) {
|
||||||
|
@ -261,7 +262,6 @@ public class ViewPagerActivity extends AppCompatActivity
|
||||||
final Cursor cursor = getContentResolver().query(uri, columns, where, args, order);
|
final Cursor cursor = getContentResolver().query(uri, columns, where, args, order);
|
||||||
final String pattern = Pattern.quote(directory) + "/[^/]*";
|
final String pattern = Pattern.quote(directory) + "/[^/]*";
|
||||||
|
|
||||||
int j = 0;
|
|
||||||
if (cursor != null && cursor.moveToFirst()) {
|
if (cursor != null && cursor.moveToFirst()) {
|
||||||
final int pathIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA);
|
final int pathIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA);
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in a new issue