Skip to content

Commit

Permalink
Add remove_presplash
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Nov 19, 2016
1 parent 9fa15b7 commit 3eacd7f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pythonforandroid/recipes/android/src/android/_android.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ TYPE_TEXT_VARIATION_POSTAL_ADDRESS = 112
TYPE_TEXT_VARIATION_URI = 16
TYPE_CLASS_PHONE = 3

# SDL2 presplash remove
def remove_presplash():
'''Remove android presplash in SDL2 bootstrap.'''
try:
from jnius import autoclass
activity = autoclass('org.kivy.android.PythonActivity').mActivity
activity.removeLoadingScreen()
except:
return

def show_keyboard(target, input_type):
if input_type == 'text':
_input_type = TYPE_CLASS_TEXT
Expand Down

0 comments on commit 3eacd7f

Please sign in to comment.