diff options
author | Mike Achtelik <mike.achtelik@gmail.com> | 2021-06-24 13:48:38 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-07-15 11:17:47 +0000 |
commit | 160db037ecdaae99603518f0eb490a09526f438b (patch) | |
tree | f7f05a08a1ebb09d3abee07e46b05db2249b4187 /src/gui/image/qimagewriter.cpp | |
parent | 8137fa1f909de65a31b490bad1630d37d8dffa2d (diff) |
Android: Fix unnecessary clipboard data access
Android 12 introduced a notification which is shown to the user each
time the app accesses the clipboard via getPrimaryClip.
Currently this notification is triggered, even if we just want to check,
if some clipboard data exists.
So lets not get the actual data and instead use getPrimaryClipDescription
to check for the existence of the correct mime type in the clipboard.
Change-Id: I4800f5545ab46b7f6cade0ce9d78c04b50ae96cf
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit 5a7f4c1f4964a4bf6595002478fbcd474cedd8a6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/gui/image/qimagewriter.cpp')
0 files changed, 0 insertions, 0 deletions