1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-10 12:00:03 +00:00

Remove the redundant/overlapping toast "Copied to clipboard" for Android 13+

Signed-off-by: dhruv <dhruvpatidar35@gmail.com>

Co-authored-by: Tobi <TobiGr@users.noreply.github.com>
Co-authored-by: AudricV <74829229+AudricV@users.noreply.github.com>
This commit is contained in:
dhruvpatidar359 2022-09-11 23:04:26 +05:30 committed by AudricV
parent 4573407fc7
commit ef35b36eba
No known key found for this signature in database
GPG Key ID: DA92EC7905614198

View File

@ -314,7 +314,10 @@ public final class ShareUtils {
}
clipboardManager.setPrimaryClip(ClipData.newPlainText(null, text));
Toast.makeText(context, R.string.msg_copied, Toast.LENGTH_SHORT).show();
if (Build.VERSION.SDK_INT < 33) {
// Android 13 has its own "copied to clipboard" dialog
Toast.makeText(context, R.string.msg_copied, Toast.LENGTH_SHORT).show();
}
}
/**