Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorits your bedtime <23366927+itsyourbedtime@users.noreply.github.com>2021-07-02 14:30:30 +0300
committerGitHub <noreply@github.com>2021-07-02 14:30:30 +0300
commitc388458462e99a79aa85926e9e84ec07fb09305c (patch)
treeb0f31fd98e59c6248b8a88af453b9fcee0e87b72 /applications/dolphin
parent6c9be3755c69a665c9e32bdfab954f6f1dd68d3e (diff)
[FL-1281] Unlocked screen fix+ (#556)
* Dolphin app: fix "Unlocked" popup timeout on menu enter * FL-1404: fix word wrap index
Diffstat (limited to 'applications/dolphin')
-rw-r--r--applications/dolphin/dolphin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/applications/dolphin/dolphin.c b/applications/dolphin/dolphin.c
index 4b6f8839..2d221601 100644
--- a/applications/dolphin/dolphin.c
+++ b/applications/dolphin/dolphin.c
@@ -110,8 +110,15 @@ bool dolphin_view_idle_main_input(InputEvent* event, void* context) {
// unlocked
if(!dolphin->locked) {
if(event->key == InputKeyOk && event->type == InputTypeShort) {
+ with_view_model(
+ dolphin->idle_view_main, (DolphinViewMainModel * model) {
+ model->hint_timeout = 0; // clear hint timeout
+ return true;
+ });
+
with_value_mutex(
dolphin->menu_vm, (Menu * menu) { menu_ok(menu); });
+
} else if(event->key == InputKeyUp && event->type == InputTypeShort) {
osTimerStart(dolphin->timeout_timer, 40);
view_dispatcher_switch_to_view(dolphin->idle_view_dispatcher, DolphinViewLockMenu);