mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-07-07 12:32:59 +00:00
change according to Isira-Seneviratne suggestion
This commit is contained in:
parent
aa75a1449f
commit
0c9f5ddcaf
@ -461,14 +461,7 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
|
||||
}
|
||||
|
||||
companion object {
|
||||
val JSON_MIME_TYPE = getMimeType()
|
||||
|
||||
private fun getMimeType(): String {
|
||||
val mimeTypeJson = MimeTypeMap.getSingleton().getMimeTypeFromExtension("json")
|
||||
return if (mimeTypeJson.isNullOrBlank())
|
||||
"application/octet-stream"
|
||||
else
|
||||
mimeTypeJson
|
||||
}
|
||||
val JSON_MIME_TYPE = MimeTypeMap.getSingleton()
|
||||
.getMimeTypeFromExtension("json") ?: "application/octet-stream"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user