mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Merge pull request #3916 from Bnyro/master
Fix crash when long pressing share while loading
This commit is contained in:
commit
f347affb1b
@ -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