mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Implement drafts for voice notes.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user