classic-lite

Minimalist rewrite of Łukasz Zalewski's "classic" pebble watchface
git clone https://git.instinctive.eu/classic-lite.git
Log | Files | Refs | README | LICENSE

commit 40febe16f0358e7ac5ff0ad9f1b3161f409f1507
parent 8f284f078c2a28ece973b63018b7c8fd31386018
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date:   Thu,  3 Dec 2015 18:09:00 +0000

Fix missing text and icon visibility update after configuration change
Diffstat:
Msrc/classic-lite.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/classic-lite.c b/src/classic-lite.c @@ -427,10 +427,11 @@ inbox_received_handler(DictionaryIterator *iterator, void *context) { /* case 9: is reserved for a future color */ /* case 10: TODO: text_font */ case 11: - if (tuple->type == TUPLE_CSTRING) + if (tuple->type == TUPLE_CSTRING) { strncpy(text_format, tuple->value->cstring, sizeof text_format); - else + update_text_layer(&tm_now); + } else APP_LOG(APP_LOG_LEVEL_ERROR, "bad type %d for text_format entry", (int)tuple->type); @@ -456,6 +457,8 @@ inbox_received_handler(DictionaryIterator *iterator, void *context) { APP_LOG(APP_LOG_LEVEL_ERROR, "bad type %d for " "show_battery_icon_below entry", (int)tuple->type); + layer_set_hidden(icon_layer, + bluetooth_connected && has_battery); break; default: APP_LOG(APP_LOG_LEVEL_ERROR,