mirror of
https://github.com/tuskyapp/Tusky
synced 2025-02-01 12:17:09 +01:00
fix crash on unknown media type
This commit is contained in:
parent
f3fc9830d4
commit
f880a2eef5
@ -48,7 +48,7 @@ abstract class ViewMediaFragment : BaseFragment() {
|
||||
Attachment.Type.IMAGE -> ViewImageFragment()
|
||||
Attachment.Type.VIDEO,
|
||||
Attachment.Type.GIFV -> ViewVideoFragment()
|
||||
else -> throw Exception("Unknown media type: $attachment")
|
||||
else -> ViewImageFragment() // it probably won't show anything, but its better than crashing
|
||||
}
|
||||
fragment.arguments = arguments
|
||||
return fragment
|
||||
|
Loading…
x
Reference in New Issue
Block a user