You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Local import works
This commit is contained in:
@@ -26,12 +26,11 @@ class Activity:
|
||||
mpos.ui.setContentView(self, screen)
|
||||
|
||||
def startActivity(self, intent):
|
||||
if not hasattr(self, 'app') or not self.app:
|
||||
print("ERROR: Activity has no .app – cannot startActivity")
|
||||
return
|
||||
self.app.start_activity(intent)
|
||||
from mpos.navigator import ActivityNavigator
|
||||
ActivityNavigator.startActivity(intent)
|
||||
|
||||
def startActivityForResult(self, intent, result_callback):
|
||||
from mpos.navigator import ActivityNavigator
|
||||
ActivityNavigator.startActivityForResult(intent, result_callback)
|
||||
|
||||
def initError(self, e):
|
||||
|
||||
Reference in New Issue
Block a user