Android 13: native clipboard message

This commit is contained in:
M66B
2022-06-12 09:27:19 +02:00
parent 01dd66eccb
commit dd0afc5e22
6 changed files with 27 additions and 10 deletions

View File

@@ -875,7 +875,8 @@ public class FragmentCompose extends FragmentBase {
identity.signature);
clipboard.setPrimaryClip(clip);
ToastEx.makeText(v.getContext(), R.string.title_clipboard_copied, Toast.LENGTH_LONG).show();
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU)
ToastEx.makeText(v.getContext(), R.string.title_clipboard_copied, Toast.LENGTH_LONG).show();
}
});
@@ -1547,7 +1548,9 @@ public class FragmentCompose extends FragmentBase {
HtmlHelper.getText(getContext(), html),
html);
clipboard.setPrimaryClip(clip);
ToastEx.makeText(context, R.string.title_clipboard_copied, Toast.LENGTH_LONG).show();
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU)
ToastEx.makeText(context, R.string.title_clipboard_copied, Toast.LENGTH_LONG).show();
}
private void deleteRef() {