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
|
|
@ -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