From f6e5e52c84cebfbdb24df6aba92bc4b3c3e8fae4 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Wed, 22 Nov 2023 15:13:02 +0200 Subject: [PATCH] Android: add note on usage of QtNative.runAction() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-118077 Change-Id: I2a743c1b65733e1ca0bf20d172d35c46d7ec8b08 Reviewed-by: Tinja Paavoseppä --- src/android/jar/src/org/qtproject/qt/android/QtNative.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/android/jar/src/org/qtproject/qt/android/QtNative.java b/src/android/jar/src/org/qtproject/qt/android/QtNative.java index 1f9b74add4..17624fecff 100644 --- a/src/android/jar/src/org/qtproject/qt/android/QtNative.java +++ b/src/android/jar/src/org/qtproject/qt/android/QtNative.java @@ -202,6 +202,8 @@ public class QtNative updateApplicationState(state); } + // Post a runnable to Main (UI) Thread if the app is active, + // otherwise, queue it to be posted when the the app is active again public static void runAction(Runnable action) { synchronized (m_mainActivityMutex) {