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

Commit 50620061 authored by Ray Chen's avatar Ray Chen
Browse files

Fix 5556160 Crash in gallery after playing slideshow Crespo IML33B.

Change-Id: Ia3de43eae5d96c9f1674dd1ccb01dc004612bda9
parent a98d3c4d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -203,7 +203,8 @@ public class SlideshowPage extends ActivityState {
            setStateResult(Activity.RESULT_OK, mResultIntent.putExtra(KEY_PHOTO_INDEX, 0));
        } else {
            int index = data.getInt(KEY_PHOTO_INDEX);
            Path path = Path.fromString(data.getString(KEY_ITEM_PATH));
            String itemPath = data.getString(KEY_ITEM_PATH);
            Path path = itemPath != null ? Path.fromString(itemPath) : null;
            boolean repeat = data.getBoolean(KEY_REPEAT);
            mModel = new SlideshowDataAdapter(mActivity, new SequentialSource(mediaSet, repeat),
                    index, path);