diff --git a/app/src/main/java/jp/juggler/subwaytooter/ActMediaViewer.kt b/app/src/main/java/jp/juggler/subwaytooter/ActMediaViewer.kt index ca7f8fc0..bad7fddd 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/ActMediaViewer.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/ActMediaViewer.kt @@ -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, diff --git a/app/src/main/java/jp/juggler/subwaytooter/api/entity/TootAttachment.kt b/app/src/main/java/jp/juggler/subwaytooter/api/entity/TootAttachment.kt index a565f9ac..f438f02c 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/api/entity/TootAttachment.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/api/entity/TootAttachment.kt @@ -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 }