feat: possibility to copy device info in about dialog

This commit is contained in:
Bnyro 2024-07-23 17:30:35 +02:00
parent 4f03265f9d
commit 7a4635d873

View File

@ -104,6 +104,9 @@ class AboutActivity : BaseActivity() {
MaterialAlertDialogBuilder(this)
.setTitle(R.string.device_info)
.setMessage(text)
.setNegativeButton(R.string.copy_tooltip) { _, _ ->
ClipboardHelper.save(this@AboutActivity, text = text)
}
.setPositiveButton(R.string.okay, null)
.show()
}