From d85a76484c3ad48c6c6dbaa7de1c7f3cf270adf1 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 27 Nov 2023 09:06:38 -0500 Subject: [PATCH] Revert "Show copied to clipboard toast on Samsung devices even if Android 13+" This reverts commit bf524595e27e5a42aceb6df0dae2817cefac63c6. Apparently it shows a toast, but I don't see it? --- .../java/eu/kanade/tachiyomi/util/system/ContextExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/ContextExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/ContextExtensions.kt index 43bbd9046..14f637366 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/ContextExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/ContextExtensions.kt @@ -46,7 +46,7 @@ fun Context.copyToClipboard(label: String, content: String) { // Android 13 and higher shows a visual confirmation of copied contents // https://developer.android.com/about/versions/13/features/copy-paste - if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2 || DeviceUtil.isSamsung) { + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2) { toast(stringResource(MR.strings.copied_to_clipboard, content.truncateCenter(50))) } } catch (e: Throwable) {