mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-30 21:19:33 +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
|
|
@ -9,6 +9,7 @@ public class AnimatedFileDrawableStream implements FileLoadOperationStream {
|
|||
private FileLoadOperation loadOperation;
|
||||
private CountDownLatch countDownLatch;
|
||||
private TLRPC.Document document;
|
||||
private ImageLocation location;
|
||||
private Object parentObject;
|
||||
private int currentAccount;
|
||||
private volatile boolean canceled;
|
||||
|
|
@ -21,12 +22,13 @@ public class AnimatedFileDrawableStream implements FileLoadOperationStream {
|
|||
|
||||
private boolean ignored;
|
||||
|
||||
public AnimatedFileDrawableStream(TLRPC.Document d, Object p, int a, boolean prev) {
|
||||
public AnimatedFileDrawableStream(TLRPC.Document d, ImageLocation l, Object p, int a, boolean prev) {
|
||||
document = d;
|
||||
location = l;
|
||||
parentObject = p;
|
||||
currentAccount = a;
|
||||
preview = prev;
|
||||
loadOperation = FileLoader.getInstance(currentAccount).loadStreamFile(this, document, parentObject, 0, preview);
|
||||
loadOperation = FileLoader.getInstance(currentAccount).loadStreamFile(this, document, location, parentObject, 0, preview);
|
||||
}
|
||||
|
||||
public boolean isFinishedLoadingFile() {
|
||||
|
|
@ -57,7 +59,7 @@ public class AnimatedFileDrawableStream implements FileLoadOperationStream {
|
|||
}
|
||||
if (availableLength == 0) {
|
||||
if (loadOperation.isPaused() || lastOffset != offset || preview) {
|
||||
FileLoader.getInstance(currentAccount).loadStreamFile(this, document, parentObject, offset, preview);
|
||||
FileLoader.getInstance(currentAccount).loadStreamFile(this, document, location, parentObject, offset, preview);
|
||||
}
|
||||
synchronized (sync) {
|
||||
if (canceled) {
|
||||
|
|
@ -107,6 +109,10 @@ public class AnimatedFileDrawableStream implements FileLoadOperationStream {
|
|||
return document;
|
||||
}
|
||||
|
||||
public ImageLocation getLocation() {
|
||||
return location;
|
||||
}
|
||||
|
||||
public Object getParentObject() {
|
||||
return document;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue