mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Hide timestamp option in share dialog for channels and playlists
This commit is contained in:
parent
70fdd10a21
commit
e7cfb58882
@ -39,9 +39,6 @@ class ShareDialog(
|
||||
}
|
||||
|
||||
val binding = DialogShareBinding.inflate(layoutInflater)
|
||||
if (shareObjectType == ShareObjectType.VIDEO) {
|
||||
setupTimeStampBinding(binding)
|
||||
}
|
||||
|
||||
return MaterialAlertDialogBuilder(requireContext())
|
||||
.setTitle(getString(R.string.share))
|
||||
@ -70,7 +67,12 @@ class ShareDialog(
|
||||
val shareIntent = Intent.createChooser(intent, getString(R.string.shareTo))
|
||||
requireContext().startActivity(shareIntent)
|
||||
}
|
||||
.setView(binding.root)
|
||||
.apply {
|
||||
if (shareObjectType == ShareObjectType.VIDEO) {
|
||||
setupTimeStampBinding(binding)
|
||||
setView(binding.root)
|
||||
}
|
||||
}
|
||||
.show()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user