comparison cagou/core/platform_/android.py @ 373:5d994be1161b

core: removed root menus (i.e. global menu on top of window): root menus were not really useful as most actions doable there are doable through others widgets in Cagou. For actions without equivalent in widgets (like about screen), a new menu, more discreet, will be added soon. Kivy Garden's ContextMenu is not used anymore, so it has been removed from dependencies
author Goffi <goffi@goffi.org>
date Mon, 27 Jan 2020 21:17:09 +0100
parents 1481f09c9175
children b2a87239af25
comparison
equal deleted inserted replaced
372:1481f09c9175 373:5d994be1161b
61 def init_platform(self): 61 def init_platform(self):
62 # sys.platform is "linux" on android by default 62 # sys.platform is "linux" on android by default
63 # so we change it to allow backend to detect android 63 # so we change it to allow backend to detect android
64 sys.platform = "android" 64 sys.platform = "android"
65 C.PLUGIN_EXT = 'pyc' 65 C.PLUGIN_EXT = 'pyc'
66
67 def on_app_build(self, wid):
68 # we don't want menu on Android
69 wid.root_menus.height = 0
70 66
71 def on_host_init(self, host): 67 def on_host_init(self, host):
72 argument = '' 68 argument = ''
73 service.start(mActivity, argument) 69 service.start(mActivity, argument)
74 70