Skip to content

Commit dbdc515

Browse files
committed
Restrict remove_presplash for sdl2 only
1 parent 2094aea commit dbdc515

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,10 @@ 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:
215+
IF BOOTSTRAP == 'sdl2':
216+
def remove_presplash():
217+
# Remove android presplash in SDL2 bootstrap.
219218
mActivity.removeLoadingScreen()
220-
except:
221-
return
222219

223220
def show_keyboard(target, input_type):
224221
if input_type == 'text':

0 commit comments

Comments
 (0)