mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-07 06:35:10 +00:00
committed by
Moxie Marlinspike
parent
f95435b0f1
commit
415a61a09b
@@ -25,6 +25,7 @@ import android.support.annotation.Nullable;
|
||||
|
||||
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
||||
import org.thoughtcrime.securesms.util.MediaUtil;
|
||||
import org.thoughtcrime.securesms.database.PartDatabase;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -74,6 +75,11 @@ public abstract class Slide {
|
||||
return part.isInProgress();
|
||||
}
|
||||
|
||||
public boolean isPendingDownload() {
|
||||
return getTransferProgress() == PartDatabase.TRANSFER_PROGRESS_FAILED ||
|
||||
getTransferProgress() == PartDatabase.TRANSFER_PROGRESS_AUTO_PENDING;
|
||||
}
|
||||
|
||||
public long getTransferProgress() {
|
||||
return part.getTransferProgress();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user