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

Commit 048350ab authored by Gloria Wang's avatar Gloria Wang
Browse files

Fix for the incorrect size of the new added DRM file. (bug 2897238)

Change-Id: I798be5243116727abdc77850000a6a84ab204bd6
parent 0e60f530
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,11 +143,11 @@ public final class DrmStore
            DrmRawContent content = new DrmRawContent(fis, (int) fis.available(),
                    DrmRawContent.DRM_MIMETYPE_MESSAGE_STRING);
            String mimeType = content.getContentType();
            long size = fis.getChannel().size();

            DrmRightsManager manager = manager = DrmRightsManager.getInstance();
            DrmRights rights = manager.queryRights(content);
            InputStream stream = content.getContentInputStream(rights);
            long size = stream.available();

            Uri contentUri = null;
            if (mimeType.startsWith("audio/")) {