From 7a4635d87346a2dcbe7032d7d9d956c1bb12a30f Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 23 Jul 2024 17:30:35 +0200 Subject: [PATCH] feat: possibility to copy device info in about dialog --- .../java/com/github/libretube/ui/activities/AboutActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/github/libretube/ui/activities/AboutActivity.kt b/app/src/main/java/com/github/libretube/ui/activities/AboutActivity.kt index 6e6ab42f2..20b9f3c5f 100644 --- a/app/src/main/java/com/github/libretube/ui/activities/AboutActivity.kt +++ b/app/src/main/java/com/github/libretube/ui/activities/AboutActivity.kt @@ -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() }