File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,12 @@ def create(self):
177
177
self ._listener = TogaApp (self )
178
178
# Call user code to populate the main window
179
179
self .interface ._startup ()
180
+ self ._create_app_commands ()
180
181
182
+ def create_menus (self ):
183
+ self .native .invalidateOptionsMenu () # Triggers onPrepareOptionsMenu
184
+
185
+ def _create_app_commands (self ):
181
186
self .interface .commands .add (
182
187
# About should be the last item in the menu, in a section on its own.
183
188
Command (
@@ -187,9 +192,6 @@ def create(self):
187
192
),
188
193
)
189
194
190
- def create_menus (self ):
191
- self .native .invalidateOptionsMenu () # Triggers onPrepareOptionsMenu
192
-
193
195
def main_loop (self ):
194
196
# In order to support user asyncio code, start the Python/Android cooperative event loop.
195
197
self .loop .run_forever_cooperatively ()
Original file line number Diff line number Diff line change
1
+ On Android the creation of the app commands has been moved to the method _create_app_commands()
You can’t perform that action at this time.
0 commit comments