Bug 1932175 - Use android.content.extra.IS_SENSITIVE instead of ClipDescription.EXTRA_IS_SENSITIVE. r=m_kato,geckoview-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D229629
This commit is contained in:
Ryan VanderMeulen 2024-11-21 01:59:53 +00:00
parent 3c89951723
commit 449013faa3

View File

@ -171,7 +171,7 @@ public final class Clipboard {
(ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
if (isPrivateData && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
final PersistableBundle extras = new PersistableBundle();
extras.putBoolean(ClipDescription.EXTRA_IS_SENSITIVE, true);
extras.putBoolean("android.content.extra.IS_SENSITIVE", true);
clipData.getDescription().setExtras(extras);
}
try {