File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
pythonforandroid/recipes/android Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,16 @@ def prebuild_arch(self, arch):
30
30
th = '#define {} {}\n '
31
31
tpy = '{} = {}\n '
32
32
33
- bootstrap = bootstrap_name = self .ctx .bootstrap .name
33
+ bootstrap = bootstrap_name = self .ctx .bootstrap .name . decode ( 'utf-8' )
34
34
is_sdl2 = bootstrap_name in ('sdl2' , 'sdl2python3' , 'sdl2_gradle' )
35
35
is_pygame = bootstrap_name in ('pygame' ,)
36
36
is_webview = bootstrap_name in ('webview' ,)
37
37
38
38
if is_sdl2 or is_webview :
39
39
if is_sdl2 :
40
40
bootstrap = 'sdl2'
41
- java_ns = 'org.kivy.android'
42
- jni_ns = 'org/kivy/android'
41
+ java_ns = u 'org.kivy.android'
42
+ jni_ns = u 'org/kivy/android'
43
43
elif is_pygame :
44
44
java_ns = 'org.renpy.android'
45
45
jni_ns = 'org/renpy/android'
Original file line number Diff line number Diff line change @@ -175,13 +175,13 @@ api_version = autoclass('android.os.Build$VERSION').SDK_INT
175
175
version_codes = autoclass(' android.os.Build$VERSION_CODES' )
176
176
177
177
178
- python_act = autoclass(JAVA_NAMESPACE + ' .PythonActivity' )
179
- Rect = autoclass(' android.graphics.Rect' )
178
+ python_act = autoclass(JAVA_NAMESPACE + u ' .PythonActivity' )
179
+ Rect = autoclass(u ' android.graphics.Rect' )
180
180
mActivity = python_act.mActivity
181
181
if mActivity:
182
182
# PyGame backend already has the listener so adding
183
183
# one here leads to a crash/too much cpu usage.
184
- # SDL2 now does noe need the listener so there is
184
+ # SDL2 now does not need the listener so there is
185
185
# no point adding a processor intensive layout listenere here.
186
186
height = 0
187
187
def get_keyboard_height ():
You can’t perform that action at this time.
0 commit comments