diff --git a/src/android/jar/src/org/qtproject/qt5/android/QtNative.java b/src/android/jar/src/org/qtproject/qt5/android/QtNative.java index 6876aac11f..af4f20679c 100644 --- a/src/android/jar/src/org/qtproject/qt5/android/QtNative.java +++ b/src/android/jar/src/org/qtproject/qt5/android/QtNative.java @@ -456,7 +456,7 @@ public class QtNative } public static Context getContext() { - if (m_activity == null) + if (m_activity != null) return m_activity; return m_service; }