Android: Pass a null Bundle when calling QtActivityDelegate.onCreate
The onCreate function expects a Bundle variable to be passed in so it needs to get a null Bundle in this aspect to prevent it from crashing due to the lack of parameters. Change-Id: I8cc4b62d9e8db170b957f7574360033e91ca3493 Pick-to: 5.15 5.12 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
4041610cb2
commit
3ce2fab0a6
@ -36,6 +36,7 @@
|
||||
|
||||
package org.qtproject.qt5.android.bindings;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.content.ComponentName;
|
||||
import android.content.pm.PackageManager;
|
||||
|
||||
@ -55,8 +56,10 @@ public class QtServiceLoader extends QtLoader {
|
||||
return;
|
||||
}
|
||||
|
||||
if (QtApplication.m_delegateObject != null && QtApplication.onCreate != null)
|
||||
QtApplication.invokeDelegateMethod(QtApplication.onCreate);
|
||||
if (QtApplication.m_delegateObject != null && QtApplication.onCreate != null) {
|
||||
Bundle bundle = null;
|
||||
QtApplication.invokeDelegateMethod(QtApplication.onCreate, bundle);
|
||||
}
|
||||
startApp(true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user