mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 07:20:38 +00:00
Update to 6.3.0 (2040)
This commit is contained in:
parent
feba57ced0
commit
520592b43d
768 changed files with 44724 additions and 19284 deletions
|
|
@ -69,7 +69,7 @@ public class FileStreamLoadOperation extends BaseDataSource implements FileLoadO
|
|||
} else if (document.mime_type.startsWith("audio")) {
|
||||
document.attributes.add(new TLRPC.TL_documentAttributeAudio());
|
||||
}
|
||||
loadOperation = FileLoader.getInstance(currentAccount).loadStreamFile(this, document, parentObject, currentOffset = (int) dataSpec.position, false);
|
||||
loadOperation = FileLoader.getInstance(currentAccount).loadStreamFile(this, document, null, parentObject, currentOffset = (int) dataSpec.position, false);
|
||||
bytesRemaining = dataSpec.length == C.LENGTH_UNSET ? document.size - dataSpec.position : dataSpec.length;
|
||||
if (bytesRemaining < 0) {
|
||||
throw new EOFException();
|
||||
|
|
@ -98,7 +98,7 @@ public class FileStreamLoadOperation extends BaseDataSource implements FileLoadO
|
|||
while (availableLength == 0 && opened) {
|
||||
availableLength = loadOperation.getDownloadedLengthFromOffset(currentOffset, readLength)[0];
|
||||
if (availableLength == 0) {
|
||||
FileLoader.getInstance(currentAccount).loadStreamFile(this, document, parentObject, currentOffset, false);
|
||||
FileLoader.getInstance(currentAccount).loadStreamFile(this, document, null, parentObject, currentOffset, false);
|
||||
countDownLatch = new CountDownLatch(1);
|
||||
countDownLatch.await();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue