Skip to content

Commit 127809c

Browse files
mpos.apps: clean focus group
1 parent 4680a7a commit 127809c

File tree

1 file changed

+2
-0
lines changed
  • internal_filesystem/lib/mpos

1 file changed

+2
-0
lines changed

internal_filesystem/lib/mpos/apps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ def _launch_activity(intent, result_callback=None):
345345
activity.intent = intent
346346
activity._result_callback = result_callback # Pass callback to activity
347347
start_time = utime.ticks_ms()
348+
# Remove objects from previous screens from the focus group:
349+
lv.group_get_default().remove_all_objs() # might be better to save and restore the group for "back" actions
348350
activity.onCreate()
349351
end_time = utime.ticks_diff(utime.ticks_ms(), start_time)
350352
print(f"apps.py _launch_activity: activity.onCreate took {end_time}ms")

0 commit comments

Comments
 (0)