Android: add note on usage of QtNative.runAction()

Task-number: QTBUG-118077
Change-Id: I2a743c1b65733e1ca0bf20d172d35c46d7ec8b08
Reviewed-by: Tinja Paavoseppä <tinja.paavoseppa@qt.io>
This commit is contained in:
Assam Boudjelthia 2023-11-22 15:13:02 +02:00
parent bc8141d286
commit f6e5e52c84

View File

@ -202,6 +202,8 @@ public class QtNative
updateApplicationState(state); 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) public static void runAction(Runnable action)
{ {
synchronized (m_mainActivityMutex) { synchronized (m_mainActivityMutex) {