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

Commit ed4fbd98 authored by Gloria Wang's avatar Gloria Wang Committed by Android (Google) Code Review
Browse files

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

parents 6c82f673 048350ab
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/")) {