Android: Reset m_usePrimaryClip when clearing the clip data
The variable needs to be set to false when we clear the clip data as there is no primary clip anymore so we should not try to access it when setting new data. Fixes: QTBUG-93831 Pick-to: 6.1 5.15 Change-Id: I309270dc075fcb0457607561ee23e12f7eb6397f Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
7bc91dbe93
commit
96982bab0c
@ -1026,6 +1026,7 @@ public class QtNative
|
||||
{
|
||||
if (Build.VERSION.SDK_INT >= 28 && m_clipboardManager != null)
|
||||
m_clipboardManager.clearPrimaryClip();
|
||||
m_usePrimaryClip = false;
|
||||
}
|
||||
private static void setClipboardText(String text)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user