Add audio support for timelines (#1466)
* Add minimal audio support for timelines * fix attachment description formatting
This commit is contained in:
parent
d4f80f308d
commit
344863b5d4
6 changed files with 46 additions and 11 deletions
|
|
@ -310,7 +310,8 @@ public abstract class SFragment extends BaseFragment implements Injectable {
|
|||
switch (type) {
|
||||
case GIFV:
|
||||
case VIDEO:
|
||||
case IMAGE: {
|
||||
case IMAGE:
|
||||
case AUDIO: {
|
||||
final List<AttachmentViewData> attachments = AttachmentViewData.list(actionable);
|
||||
final Intent intent = ViewMediaActivity.newIntent(getContext(), attachments,
|
||||
urlIndex);
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ abstract class ViewMediaFragment : BaseFragment(), SharedElementTransitionListen
|
|||
val fragment = when (attachment.type) {
|
||||
Attachment.Type.IMAGE -> ViewImageFragment()
|
||||
Attachment.Type.VIDEO,
|
||||
Attachment.Type.GIFV -> ViewVideoFragment()
|
||||
Attachment.Type.GIFV,
|
||||
Attachment.Type.AUDIO -> ViewVideoFragment()
|
||||
else -> ViewImageFragment() // it probably won't show anything, but its better than crashing
|
||||
}
|
||||
fragment.arguments = arguments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue