Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b86c6aa0 authored by Chih-Chung Chang's avatar Chih-Chung Chang
Browse files

Fix 5548567: Don't play video immediately.

Change-Id: I30e9ebf7461e12250e1ef240c157e7f59b1ce2a1
parent af92c510
Loading
Loading
Loading
Loading
+10 −17
Original line number Diff line number Diff line
@@ -174,12 +174,6 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
        } else if (!mSelectionManager.inSelectionMode()) {
            if (mGetContent) {
                onGetContent(item);
            } else {
                boolean playVideo =
                    (item.getSupportedOperations() & MediaItem.SUPPORT_PLAY) != 0;
                if (playVideo) {
                    // Play the video.
                    PhotoPage.playVideo((Activity) mActivity, item.getPlayUri(), item.getName());
            } else {
                // Get into the PhotoPage.
                Bundle data = new Bundle();
@@ -192,7 +186,6 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
                mActivity.getStateManager().startStateForResult(
                        PhotoPage.class, REQUEST_PHOTO, data);
            }
            }
        } else {
            mSelectionManager.toggle(item.getPath());
            mDetailsSource.findIndex(slotIndex);