Skip to content

Commit

Permalink
fix crash on unknown media type
Browse files Browse the repository at this point in the history
  • Loading branch information
connyduck committed Nov 17, 2018
1 parent f3fc983 commit f880a2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f880a2e

Please sign in to comment.