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

Commit 62ea8820 authored by Paramananda's avatar Paramananda Committed by Paramananda Pradhan
Browse files

Gallery2 : Video share option is not working

- Issue is due to OMA DRM integration on the platform.
- Added video share option on local video supported operation list.
CRs-Fixed: 822784

Change-Id: Ia2a81b5f08ac02b98dd365b788d766ae3b57020e
parent b6d1df6f
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -190,15 +190,17 @@ public class LocalVideo extends LocalMediaItem {

    @Override
    public int getSupportedOperations() {
        int operation = SUPPORT_DELETE | SUPPORT_PLAY | SUPPORT_INFO | SUPPORT_TRIM | SUPPORT_MUTE;
        if (DrmHelper.isDrmFile(getFilePath())) {
            operation |= SUPPORT_DRM_INFO;
            int operation = SUPPORT_DELETE | SUPPORT_PLAY | SUPPORT_INFO
                    | SUPPORT_DRM_INFO;
            if (DrmHelper.isShareableDrmFile(getFilePath())) {
                operation |= SUPPORT_SHARE;
            }
            return operation;
        }

        return operation;
        return SUPPORT_DELETE | SUPPORT_SHARE | SUPPORT_PLAY | SUPPORT_INFO
                | SUPPORT_TRIM | SUPPORT_MUTE;
    }

    @Override