Skip to content

Commit 248d10b

Browse files
Local import works
1 parent 163511f commit 248d10b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

internal_filesystem/lib/mpos/app/activity.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ def setContentView(self, screen):
2626
mpos.ui.setContentView(self, screen)
2727

2828
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)
29+
from mpos.navigator import ActivityNavigator
30+
ActivityNavigator.startActivity(intent)
3331

3432
def startActivityForResult(self, intent, result_callback):
33+
from mpos.navigator import ActivityNavigator
3534
ActivityNavigator.startActivityForResult(intent, result_callback)
3635

3736
def initError(self, e):

0 commit comments

Comments
 (0)