mirror of
https://github.com/tateisu/SubwayTooter
synced 2024-12-26 08:53:12 +01:00
(Misskey)メディアタイプがaudio/ で始まる場合も内蔵メディアビューアで開けるようにする
This commit is contained in:
parent
90cf364b11
commit
a73d8a45d0
@ -343,7 +343,7 @@ class ActMediaViewer : AppCompatActivity(), View.OnClickListener {
|
||||
}
|
||||
}
|
||||
|
||||
val mediaSourceEventListener = object : MediaSourceEventListener {
|
||||
private val mediaSourceEventListener = object : MediaSourceEventListener {
|
||||
override fun onLoadStarted(
|
||||
dataSpec : DataSpec?,
|
||||
dataType : Int,
|
||||
|
@ -75,6 +75,7 @@ class TootAttachment(serviceType:ServiceType,src : JSONObject) : TootAttachmentL
|
||||
this.type = when{
|
||||
mimeType.startsWith("image/") -> TootAttachmentLike.TYPE_IMAGE
|
||||
mimeType.startsWith("video/") -> TootAttachmentLike.TYPE_VIDEO
|
||||
mimeType.startsWith("audio/") -> TootAttachmentLike.TYPE_VIDEO
|
||||
else-> TootAttachmentLike.TYPE_UNKNOWN
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user