mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
hide add to playlist when not logged in
This commit is contained in:
parent
2727d91d24
commit
fdacc32383
@ -37,6 +37,13 @@ class VideoOptionsDialog(
|
||||
context?.getString(R.string.share)
|
||||
)
|
||||
|
||||
// remove the add to playlist option if not logged in
|
||||
if (PreferenceHelper.getToken() == "") {
|
||||
optionsList.remove(
|
||||
context?.getString(R.string.addToPlaylist)
|
||||
|
||||
)
|
||||
}
|
||||
/**
|
||||
* Check whether the player is running by observing the notification
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user