Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove the redundant/overlapping toast "Copied to clipboard" for Andr…
…oid 13+

Signed-off-by: dhruv <[email protected]>

Co-authored-by: Tobi <[email protected]>
Co-authored-by: AudricV <[email protected]>
  • Loading branch information
3 people committed Nov 8, 2022
commit ef35b36ebac12850f3c2da43a4c73da9142a24f3
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ public static void copyToClipboard(@NonNull final Context context, final String
}

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();
}
}

/**
Expand Down