hide add to playlist when not logged in

This commit is contained in:
Bnyro 2022-08-26 09:17:43 +02:00
parent 2727d91d24
commit fdacc32383

View File

@ -37,6 +37,13 @@ class VideoOptionsDialog(
context?.getString(R.string.share) 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 * Check whether the player is running by observing the notification
*/ */