commit 6b0b36d27c97696c7f26b56c346db93499c76c0a
parent 2322b58f90fbd6bd5d56e126beba31a73d98e957
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date: Sun, 7 Aug 2016 19:47:43 +0000
Fix app crash on auto wakeup (there is no menu to mark in this case)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/battery-minus.c b/src/battery-minus.c
@@ -62,6 +62,7 @@ first_index(struct event *page, size_t page_length) {
static void
mark_menu_dirty(void) {
+ if (!menu_layer) return;
layer_mark_dirty(simple_menu_layer_get_layer(menu_layer));
}