1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-27 01:13:31 +01:00

(Misskey)メディアタイプがaudio/ で始まる場合も内蔵メディアビューアで開けるようにする

This commit is contained in:
tateisu 2018-09-01 11:57:13 +09:00
parent 90cf364b11
commit a73d8a45d0
2 changed files with 2 additions and 1 deletions

View File

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

View File

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