launcher: fix flickering in preferences widget

This commit is contained in:
Joey Castillo 2021-10-04 11:59:08 -04:00
parent 74e8662509
commit 95e95bb980

View File

@ -17,8 +17,6 @@ void preferences_widget_activate(LauncherSettings *settings, void *context) {
}
bool preferences_widget_loop(LauncherEvent event, LauncherSettings *settings, void *context) {
(void) settings;
(void) context;
printf("preferences_widget_loop\n");
uint8_t current_page = *((uint8_t *)context);
switch (event.bit.event_type) {
@ -53,7 +51,6 @@ bool preferences_widget_loop(LauncherEvent event, LauncherSettings *settings, vo
break;
}
watch_clear_display();
watch_display_string((char *)preferences_widget_titles[current_page], 0);
if (event.bit.subsecond % 2) return current_page <= 2;