Skip to content

Commit c2c5089

Browse files
Fix typo
1 parent 4f57527 commit c2c5089

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

internal_filesystem/lib/mpos/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
from .app.activities.chooser import ChooserActivity
1010
from .app.activities.view import ViewActivity
1111
from .app.activities.share import ShareActivity
12+

internal_filesystem/lib/mpos/app/activities/chooser.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
from ..activity import Activity
22

3-
#from ..activity import Activity
4-
5-
#import mpos.app.activity
6-
7-
#import mpos.app.activity
8-
9-
#from mpos.app import Activity
10-
113
import mpos.package_manager
124

135
class ChooserActivity(Activity):
@@ -18,7 +10,7 @@ def onCreate(self):
1810
screen = lv.obj()
1911
# Get handlers from intent extras
2012
original_intent = self.getIntent().extras.get("original_intent")
21-
handlers = self.getIntent().extras.gepackage_managert("handlers", [])
13+
handlers = self.getIntent().extras.get("handlers", [])
2214
label = lv.label(screen)
2315
label.set_text("Choose an app")
2416
label.set_pos(10, 10)

internal_filesystem/lib/mpos/app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ujson
2-
from ..content.intent import Intent # optional, if App uses Intent
2+
#from ..content.intent import Intent # optional, if App uses Intent
33

44

55
class App:

internal_filesystem/lib/mpos/navigator.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
import utime
22
from .content.intent import Intent
3-
#from .app.activity import Activity
43

4+
# circular import issue:
55
#import mpos.package_manager
6+
#from .package_manager import PackageManager
7+
#from mpos import PackageManager
8+
#from mpos import *
9+
610
import mpos.ui
711

812
class ActivityNavigator:
13+
#handlersa = PackageManager.APP_REGISTRY.get(intent.action, [])
14+
915
@staticmethod
1016
def startActivity(intent):
1117
if not isinstance(intent, Intent):
1218
raise ValueError("Must provide an Intent")
1319
if intent.action: # Implicit intent: resolve handlers
14-
#handlers = mpos.package_manager.PackageManager.APP_REGISTRY.get(intent.action, [])
20+
#handlers = PackageManager.APP_REGISTRY.get(intent.action, [])
1521
if len(handlers) == 1:
1622
intent.activity_class = handlers[0]
1723
ActivityNavigator._launch_activity(intent)

0 commit comments

Comments
 (0)