Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit127809c

Browse files
mpos.apps: clean focus group
1 parent4680a7a commit127809c

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)

[8]ページ先頭

©2009-2025 Movatter.jp