summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/wps.c9
-rw-r--r--apps/radio/radio_skin.c5
2 files changed, 12 insertions, 2 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 8b3f671e34..df00080f2c 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -633,6 +633,9 @@ static void gwps_leave_wps(void)
#endif
/* unhandle statusbar update delay */
sb_skin_set_update_delay(DEFAULT_UPDATE_DELAY);
+#ifdef HAVE_TOUCHSCREEN
+ touchscreen_set_mode(global_settings.touch_mode);
+#endif
}
/*
@@ -665,10 +668,12 @@ static void gwps_enter_wps(void)
display->clear_display();
skin_update(gwps, SKIN_REFRESH_ALL);
+ }
#ifdef HAVE_TOUCHSCREEN
- skin_disarm_touchregions(gui_wps[i].data);
+ skin_disarm_touchregions(gui_wps[SCREEN_MAIN].data);
+ if (!gui_wps[SCREEN_MAIN].data->touchregions)
+ touchscreen_set_mode(TOUCHSCREEN_BUTTON);
#endif
- }
/* force statusbar/skin update since we just cleared the whole screen */
send_event(GUI_EVENT_ACTIONUPDATE, (void*)1);
}
diff --git a/apps/radio/radio_skin.c b/apps/radio/radio_skin.c
index c7994b3135..6bc6c377d4 100644
--- a/apps/radio/radio_skin.c
+++ b/apps/radio/radio_skin.c
@@ -85,6 +85,11 @@ void fms_fix_displays(enum fms_exiting toggle_state)
viewportmanager_theme_undo(i, skin_has_sbs(i, fms_skin[i].data));
}
}
+#ifdef HAVE_TOUCHSCREEN
+ if (!fms_skin[SCREEN_MAIN].data->touchregions)
+ touchscreen_set_mode(toggle_state == FMS_ENTER ?
+ TOUCHSCREEN_BUTTON : global_settings.touch_mode);
+#endif
}