mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 06:27:49 +01:00
Show copied to clipboard toast on Samsung devices even if Android 13+
Since OneUI didn't implement the AOSP thing.
This commit is contained in:
parent
27c4db752c
commit
bf524595e2
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2 || DeviceUtil.isSamsung) {
|
||||
toast(stringResource(MR.strings.copied_to_clipboard, content.truncateCenter(50)))
|
||||
}
|
||||
} catch (e: Throwable) {
|
||||
|
|
Loading…
Reference in a new issue