Skip to content

Commit 7e3c01e

Browse files
Fix restart_launcher()
1 parent e7e2e4f commit 7e3c01e

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
# Re-export common classes for convenience
1+
# Core framework
22
from .app.app import App
33
from .app.activity import Activity
44
from .content.intent import Intent
55
from .navigator import ActivityNavigator
66
from .content.pm import PackageManager
77

8-
# Optional: re-export activities
8+
# Common activities (optional)
99
from .app.activities.chooser import ChooserActivity
1010
from .app.activities.view import ViewActivity
1111
from .app.activities.share import ShareActivity
1212

13+
__all__ = [
14+
"App", "Activity", "Intent",
15+
"ActivityNavigator", "PackageManager",
16+
"ChooserActivity", "ViewActivity", "ShareActivity"
17+
]

internal_filesystem/lib/mpos/app/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,3 @@
33
from .activities.chooser import ChooserActivity
44
from .activities.view import ViewActivity
55
from .activities.share import ShareActivity
6-
7-
__all__ = [
8-
"App", "Activity",
9-
"ChooserActivity", "ViewActivity", "ShareActivity"
10-
]

internal_filesystem/lib/mpos/apps.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import lvgl as lv
22

3-
import uio
4-
import ujson
5-
import uos
6-
import utime # for timing calls
7-
83
import _thread
94
import traceback
105

internal_filesystem/lib/mpos/ui/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import lvgl as lv
2-
#import mpos.apps
32
import mpos.time
43
import mpos.wifi
54
from mpos.ui.anim import WidgetAnimator
@@ -44,8 +43,9 @@ def set_foreground_app(appname):
4443
foreground_app_name = appname
4544
print(f"foreground app is: {foreground_app_name}")
4645

47-
#def show_launcher():
48-
# mpos.apps.restart_launcher()
46+
def show_launcher():
47+
import mpos.apps
48+
mpos.apps.restart_launcher()
4949

5050
def init_rootscreen():
5151
global horizontal_resolution, vertical_resolution

0 commit comments

Comments
 (0)