You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the linked issue, this is to do with accessing attributes of org.renpy.android.PythonActivity with the SDL2 bootstrap, in which case this is only a shim and you should instead use org.kivy.android.PythonActivity. Is that what you're asking about?
@reify
def fontscale(self):
'''Return the fontscale user preference. This value is 1 by default but
can vary between 0.8 and 1.2.
'''
custom_fontscale = environ.get('KIVY_METRICS_FONTSCALE')
if custom_fontscale:
return float(custom_fontscale)
if platform == 'android':
from jnius import autoclass
if USE_SDL2:
PythonActivity = autoclass('org.kivy.android.PythonActivity')
else:
PythonActivity = autoclass('org.renpy.android.PythonActivity')
config = PythonActivity.mActivity.getResources().getConfiguration()
return config.fontScale
I change bootstrap to pygame to avoid this but not work stable.
Maybe some bug there.
The build out apk run correctly on Android 4.x, but fail on Android 5.1.1 and Android 6
log is same as:
#686
What is the problem and how to solve this?
how to figure it out?
Thanks.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: