Android: Do not call exit when embedded Qt application is stopped
Q4A apps call exit() when leaving main(), unless the flag QT_ANDROID_NO_EXIT_CALL is set. For embedded applications this is incorrect behavior, because calling exit() will also make the host application shut down. Task-number: QTBUG-123711 Change-Id: I693f65d22568ab7d2a094a3c2336bf392cee214f Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
5be227b924
commit
6d2db42f7c
@ -41,6 +41,7 @@ class QtEmbeddedLoader extends QtLoader {
|
|||||||
setEnvironmentVariable("QT_ANDROID_THEME_DISPLAY_DPI", String.valueOf(displayDensity));
|
setEnvironmentVariable("QT_ANDROID_THEME_DISPLAY_DPI", String.valueOf(displayDensity));
|
||||||
String stylePath = ExtractStyle.setup(m_context, "minimal", displayDensity);
|
String stylePath = ExtractStyle.setup(m_context, "minimal", displayDensity);
|
||||||
setEnvironmentVariable("ANDROID_STYLE_PATH", stylePath);
|
setEnvironmentVariable("ANDROID_STYLE_PATH", stylePath);
|
||||||
|
setEnvironmentVariable("QT_ANDROID_NO_EXIT_CALL", String.valueOf(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user