File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
recipes/android/src/android Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11# Android-specific python services.
22
33cdef extern int SDL_ANDROID_CheckPause()
4- cdef extern void SDL_ANDROID_WaitForResume()
4+ cdef extern void SDL_ANDROID_WaitForResume() nogil
55cdef extern void SDL_ANDROID_MapKey(int scancode, int keysym)
66
77def check_pause ():
Original file line number Diff line number Diff line change 77from jnius import PythonJavaClass , java_method , autoclass
88
99# reference to the activity
10- _PythonActivity = None
10+ _PythonActivity = autoclass ( 'org.renpy.android.PythonActivity' )
1111
1212
1313class Runnable (PythonJavaClass ):
@@ -23,9 +23,6 @@ def __init__(self, func):
2323 self .func = func
2424
2525 def __call__ (self , args , kwargs ):
26- global _PythonActivity
27- if _PythonActivity is None :
28- _PythonActivity = autoclass ('org.renpy.android.PythonActivity' )
2926 self .args = args
3027 self .kwargs = kwargs
3128 _PythonActivity .mActivity .runOnUiThread (self )
You can’t perform that action at this time.
0 commit comments