Skip to content

Commit 4b104ba

Browse files
committed
Ensure the loading screen continues to show until the app is ready to render.
1 parent 76c9ec2 commit 4b104ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android/PythonActivity.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ protected void onPostExecute(String result) {
131131
// private data if we do not.
132132
mActivity.finishLoad();
133133

134+
// finishLoad called setContentView with the SDL view, which
135+
// removed the loading screen. However, we still need it to
136+
// show until the app is ready to render, so pop it back up
137+
// on top of the SDL view.
138+
this.showLoadingScreen();
139+
134140
String app_root_dir = getAppRoot();
135141
if (getIntent() != null && getIntent().getAction() != null &&
136142
getIntent().getAction().equals("org.kivy.LAUNCH")) {

0 commit comments

Comments
 (0)