fixed downloaded video

This commit is contained in:
LagradOst 2021-07-24 14:56:12 +02:00
parent 8c0a6dffe9
commit 062d7feff9

View file

@ -1639,7 +1639,7 @@ class PlayerFragment : Fragment() {
@SuppressLint("SetTextI18n") @SuppressLint("SetTextI18n")
private fun initPlayer() { private fun initPlayer() {
if (isDownloadedFile) { if (isDownloadedFile) {
initPlayer(null, uriData.uri) initPlayer(null, uriData.uri.removePrefix("file://").replace("%20", " ")) // FIX FILE PERMISSION
} }
println("INIT PLAYER") println("INIT PLAYER")
view?.setOnTouchListener { _, _ -> return@setOnTouchListener true } // VERY IMPORTANT https://stackoverflow.com/questions/28818926/prevent-clicking-on-a-button-in-an-activity-while-showing-a-fragment view?.setOnTouchListener { _, _ -> return@setOnTouchListener true } // VERY IMPORTANT https://stackoverflow.com/questions/28818926/prevent-clicking-on-a-button-in-an-activity-while-showing-a-fragment