feat: reaset timeout tick on tap

This commit is contained in:
Julian Vos 2024-08-04 22:58:39 +02:00
parent 756b4f9dcd
commit c22a9df2cc
No known key found for this signature in database
GPG key ID: FBEE03DAD4B3DC89

View file

@ -429,6 +429,9 @@ bool WatchFaceCasioStyleG7710::IsAvailable(Pinetime::Controllers::FS& filesystem
}
bool WatchFaceCasioStyleG7710::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
if (lv_obj_get_hidden(btnClose) == false) {
savedTick = lv_tick_get();
}
if ((event == Pinetime::Applications::TouchEvents::LongTap) && lv_obj_get_hidden(btnClose)) {
lv_obj_set_hidden(btnWeather, false);
lv_obj_set_hidden(btnClose, false);