mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
Fix crash when long pressing share while loading
This commit is contained in:
parent
a1b24d455a
commit
dddb962d9e
@ -448,7 +448,8 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
binding.relPlayerShare.setOnLongClickListener {
|
binding.relPlayerShare.setOnLongClickListener {
|
||||||
streams.hls ?: return@setOnLongClickListener true
|
if (!this::streams.isInitialized || streams.hls == null)
|
||||||
|
return@setOnLongClickListener true
|
||||||
|
|
||||||
// start an intent with video as mimetype using the hls stream
|
// start an intent with video as mimetype using the hls stream
|
||||||
val uri = Uri.parse(ProxyHelper.unwrapIfEnabled(streams.hls!!))
|
val uri = Uri.parse(ProxyHelper.unwrapIfEnabled(streams.hls!!))
|
||||||
|
Loading…
Reference in New Issue
Block a user