From a73d8a45d0957df34fb9f9fa4948f0b6d61f2ff4 Mon Sep 17 00:00:00 2001 From: tateisu Date: Sat, 1 Sep 2018 11:57:13 +0900 Subject: [PATCH] =?UTF-8?q?(Misskey)=E3=83=A1=E3=83=87=E3=82=A3=E3=82=A2?= =?UTF-8?q?=E3=82=BF=E3=82=A4=E3=83=97=E3=81=8Caudio/=20=E3=81=A7=E5=A7=8B?= =?UTF-8?q?=E3=81=BE=E3=82=8B=E5=A0=B4=E5=90=88=E3=82=82=E5=86=85=E8=94=B5?= =?UTF-8?q?=E3=83=A1=E3=83=87=E3=82=A3=E3=82=A2=E3=83=93=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E3=82=A2=E3=81=A7=E9=96=8B=E3=81=91=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/jp/juggler/subwaytooter/ActMediaViewer.kt | 2 +- .../java/jp/juggler/subwaytooter/api/entity/TootAttachment.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 }