Skip to content

Commit 2094aea

Browse files
committed
Add remove_presplash
1 parent 9fa15b7 commit 2094aea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pythonforandroid/recipes/android/src/android/_android.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ TYPE_TEXT_VARIATION_POSTAL_ADDRESS = 112
212212
TYPE_TEXT_VARIATION_URI = 16
213213
TYPE_CLASS_PHONE = 3
214214

215+
# SDL2 presplash remove
216+
def remove_presplash():
217+
'''Remove android presplash in SDL2 bootstrap.'''
218+
try:
219+
mActivity.removeLoadingScreen()
220+
except:
221+
return
222+
215223
def show_keyboard(target, input_type):
216224
if input_type == 'text':
217225
_input_type = TYPE_CLASS_TEXT

0 commit comments

Comments
 (0)