Implement drafts for voice notes.

This commit is contained in:
Alex Hart
2021-07-02 10:28:45 -03:00
parent 2d7c043398
commit 5826b0c068
29 changed files with 945 additions and 163 deletions

View File

@@ -47,6 +47,10 @@ public class BlobDataSource implements DataSource {
}
long size = unwrapLong(BlobProvider.getFileSize(uri));
if (size == 0) {
size = BlobProvider.getInstance().calculateFileSize(context, uri);
}
if (size - dataSpec.position <= 0) throw new EOFException("No more data");
return size - dataSpec.position;