mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +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 {
|
||||
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
|
||||
val uri = Uri.parse(ProxyHelper.unwrapIfEnabled(streams.hls!!))
|
||||
|
Loading…
Reference in New Issue
Block a user