mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
fix: background service stops when using add to queue/playlist/download share action
This commit is contained in:
parent
f10afe7bd8
commit
c0dd9e802f
@ -29,7 +29,7 @@ class AddToPlaylistActivity : BaseActivity() {
|
|||||||
}?.getStringExtra(IntentData.videoId)
|
}?.getStringExtra(IntentData.videoId)
|
||||||
|
|
||||||
if (videoId == null) {
|
if (videoId == null) {
|
||||||
finishAndRemoveTask()
|
finish()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,6 @@ class AddToQueueActivity : BaseActivity() {
|
|||||||
startActivity(newIntent)
|
startActivity(newIntent)
|
||||||
}
|
}
|
||||||
|
|
||||||
finishAndRemoveTask()
|
finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ class DownloadActivity : BaseActivity() {
|
|||||||
)
|
)
|
||||||
}.show(supportFragmentManager, null)
|
}.show(supportFragmentManager, null)
|
||||||
} else {
|
} else {
|
||||||
finishAndRemoveTask()
|
finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user