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

Commit ce7d8bd2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Gallery2: Allow edit if launched from Snapcam"

parents 1c26c324 d699b6a5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@ public final class GalleryActivity extends AbstractGalleryActivity implements On
    public static final String KEY_TYPE_BITS = "type-bits";
    public static final String KEY_MEDIA_TYPES = "mediaTypes";
    public static final String KEY_DISMISS_KEYGUARD = "dismiss-keyguard";
    public static final String KEY_FROM_SNAPCAM = "from-snapcam";

    private static final String TAG = "GalleryActivity";
    private Dialog mVersionCheckDialog;
@@ -286,7 +287,9 @@ public final class GalleryActivity extends AbstractGalleryActivity implements On
                Path albumPath = dm.getDefaultSetOf(itemPath);

                data.putString(PhotoPage.KEY_MEDIA_ITEM_PATH, itemPath.toString());
                if (!intent.getBooleanExtra(KEY_FROM_SNAPCAM, false)) {
                    data.putBoolean(PhotoPage.KEY_READONLY, true);
                }

                // TODO: Make the parameter "SingleItemOnly" public so other
                //       activities can reference it.