mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Remove unnecessary context args in slide creation.
This commit is contained in:
committed by
Nicholas Tinsley
parent
a911a007d2
commit
b42dd5289b
@@ -90,7 +90,7 @@ public class MediaUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static @NonNull Slide getSlideForAttachment(Context context, Attachment attachment) {
|
||||
public static @NonNull Slide getSlideForAttachment(Attachment attachment) {
|
||||
if (attachment.isSticker()) {
|
||||
return new StickerSlide(attachment);
|
||||
}
|
||||
@@ -98,12 +98,12 @@ public class MediaUtil {
|
||||
switch (getSlideTypeFromContentType(attachment.getContentType())) {
|
||||
case GIF : return new GifSlide(attachment);
|
||||
case IMAGE : return new ImageSlide(attachment);
|
||||
case VIDEO : return new VideoSlide(context, attachment);
|
||||
case AUDIO : return new AudioSlide(context, attachment);
|
||||
case MMS : return new MmsSlide(context, attachment);
|
||||
case LONG_TEXT : return new TextSlide(context, attachment);
|
||||
case VIEW_ONCE : return new ViewOnceSlide(context, attachment);
|
||||
case DOCUMENT : return new DocumentSlide(context, attachment);
|
||||
case VIDEO : return new VideoSlide(attachment);
|
||||
case AUDIO : return new AudioSlide(attachment);
|
||||
case MMS : return new MmsSlide(attachment);
|
||||
case LONG_TEXT : return new TextSlide(attachment);
|
||||
case VIEW_ONCE : return new ViewOnceSlide(attachment);
|
||||
case DOCUMENT : return new DocumentSlide(attachment);
|
||||
default : throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user