mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
remove unused isInProgress and isPendingDownload from slides
This commit is contained in:
@@ -291,8 +291,7 @@ public class ThumbnailView extends FrameLayout {
|
||||
.diskCacheStrategy(DiskCacheStrategy.NONE)
|
||||
.transition(withCrossFade()), new CenterCrop());
|
||||
|
||||
if (slide.isInProgress()) return request;
|
||||
else return request.apply(RequestOptions.errorOf(R.drawable.ic_image_dark));
|
||||
return request.apply(RequestOptions.errorOf(R.drawable.ic_image_dark));
|
||||
}
|
||||
|
||||
private RequestBuilder buildPlaceholderGlideRequest(@NonNull GlideRequests glideRequests, @NonNull Slide slide) {
|
||||
|
||||
@@ -108,14 +108,6 @@ public abstract class Slide {
|
||||
return attachment;
|
||||
}
|
||||
|
||||
public boolean isInProgress() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isPendingDownload() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public long getTransferState() {
|
||||
return attachment.getTransferState();
|
||||
}
|
||||
|
||||
@@ -218,7 +218,6 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil
|
||||
|
||||
return thumbnailSlide != null &&
|
||||
thumbnailSlide.hasImage() &&
|
||||
!thumbnailSlide.isInProgress() &&
|
||||
thumbnailSlide.getThumbnailUri() != null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user