diff options
author | Kieran Cawthray <kieranc@gmail.com> | 2021-10-18 23:04:12 +0200 |
---|---|---|
committer | Kieran Cawthray <kieranc@gmail.com> | 2021-10-18 23:04:12 +0200 |
commit | c4ab17f58707771256c6fffd8db63d32e2831610 (patch) | |
tree | 1c7ab208c391709494c7e0f700a9c57b4a9f2e4c /src/displayapp/screens | |
parent | 1c86796eac20f6f8c3e6c1973fa080ef15bd7f3f (diff) |
Disable DoubleTap when settings buttons are displayed
Diffstat (limited to 'src/displayapp/screens')
-rw-r--r-- | src/displayapp/screens/PineTimeStyle.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/displayapp/screens/PineTimeStyle.cpp b/src/displayapp/screens/PineTimeStyle.cpp index ad1b45eb..6dd8f485 100644 --- a/src/displayapp/screens/PineTimeStyle.cpp +++ b/src/displayapp/screens/PineTimeStyle.cpp @@ -306,6 +306,9 @@ bool PineTimeStyle::OnTouchEvent(Pinetime::Applications::TouchEvents event) { savedTick = lv_tick_get(); return true; } + if ((event == Pinetime::Applications::TouchEvents::DoubleTap) && (lv_obj_get_hidden(btnRandom) == false)) { + return true; + } return false; } |