We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163511f commit 248d10bCopy full SHA for 248d10b
internal_filesystem/lib/mpos/app/activity.py
@@ -26,12 +26,11 @@ def setContentView(self, screen):
26
mpos.ui.setContentView(self, screen)
27
28
def startActivity(self, intent):
29
- if not hasattr(self, 'app') or not self.app:
30
- print("ERROR: Activity has no .app – cannot startActivity")
31
- return
32
- self.app.start_activity(intent)
+ from mpos.navigator import ActivityNavigator
+ ActivityNavigator.startActivity(intent)
33
34
def startActivityForResult(self, intent, result_callback):
35
ActivityNavigator.startActivityForResult(intent, result_callback)
36
37
def initError(self, e):
0 commit comments