File tree 2 files changed +2
-5
lines changed
recipes/android/src/android
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Android-specific python services.
2
2
3
3
cdef extern int SDL_ANDROID_CheckPause()
4
- cdef extern void SDL_ANDROID_WaitForResume()
4
+ cdef extern void SDL_ANDROID_WaitForResume() nogil
5
5
cdef extern void SDL_ANDROID_MapKey(int scancode, int keysym)
6
6
7
7
def check_pause ():
Original file line number Diff line number Diff line change 7
7
from jnius import PythonJavaClass , java_method , autoclass
8
8
9
9
# reference to the activity
10
- _PythonActivity = None
10
+ _PythonActivity = autoclass ( 'org.renpy.android.PythonActivity' )
11
11
12
12
13
13
class Runnable (PythonJavaClass ):
@@ -23,9 +23,6 @@ def __init__(self, func):
23
23
self .func = func
24
24
25
25
def __call__ (self , args , kwargs ):
26
- global _PythonActivity
27
- if _PythonActivity is None :
28
- _PythonActivity = autoclass ('org.renpy.android.PythonActivity' )
29
26
self .args = args
30
27
self .kwargs = kwargs
31
28
_PythonActivity .mActivity .runOnUiThread (self )
You can’t perform that action at this time.
0 commit comments