mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
feat: possibility to copy device info in about dialog
This commit is contained in:
parent
4f03265f9d
commit
7a4635d873
@ -104,6 +104,9 @@ class AboutActivity : BaseActivity() {
|
|||||||
MaterialAlertDialogBuilder(this)
|
MaterialAlertDialogBuilder(this)
|
||||||
.setTitle(R.string.device_info)
|
.setTitle(R.string.device_info)
|
||||||
.setMessage(text)
|
.setMessage(text)
|
||||||
|
.setNegativeButton(R.string.copy_tooltip) { _, _ ->
|
||||||
|
ClipboardHelper.save(this@AboutActivity, text = text)
|
||||||
|
}
|
||||||
.setPositiveButton(R.string.okay, null)
|
.setPositiveButton(R.string.okay, null)
|
||||||
.show()
|
.show()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user