Skip to content

Commit

Permalink
- add pin lock when you exit screensaver and app.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinkyaraj-23 committed Feb 27, 2024
1 parent 729b64b commit 63527a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ void ui_init(void) {
}

void require_pin(void) {
os_global_pin_invalidate();
// before exiting the app, force a device lock
bolos_ux_params_t params = {.ux_id = BOLOS_UX_VALIDATE_PIN};
os_ux_blocking(&params);
}

void exit_app(void) {
Expand Down
3 changes: 3 additions & 0 deletions src/ui_empty.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ void ux_layout_empty_screen_init(__attribute__((unused)) unsigned int x) {

void return_to_idle() {
global.is_blank_screen = false;
// before exiting the screensaver, force a device lock
bolos_ux_params_t params = {.ux_id = BOLOS_UX_VALIDATE_PIN};
os_ux_blocking(&params);
ux_idle_screen(NULL, NULL);
}

Expand Down

0 comments on commit 63527a3

Please sign in to comment.