From 89e2dcf83fa3901090893e98c17708e279dea47f Mon Sep 17 00:00:00 2001 From: Tom Marshall Date: Mon, 24 Nov 2014 15:11:41 -0800 Subject: recovery: Initial dialog implementation Implement two types of dialogs: info and error. Info dialogs are intended to show that an operation is in progress and cannot be interrupted. Error dialogs are intended to show that an error occurred. The user must respond by dismissing the dialog with any input (a swipe or keypress). Dialogs may be initiated internally within the UI code or externally via a named local socket. Dialogs created via socket are presumed to be info and may not be dismissed. When the client socket is closed, the dialog automatically dismisses. Initial implementation shows dialogs for adb backup and restore. Future work will show dialogs for all errors and lengthy operations. Change-Id: Icefea12ec0fd70fb487d54aa2eb1cae9dd451355 --- wear_ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wear_ui.h') diff --git a/wear_ui.h b/wear_ui.h index 839a264..d7624fe 100644 --- a/wear_ui.h +++ b/wear_ui.h @@ -91,7 +91,7 @@ class WearRecoveryUI : public RecoveryUI { bool rtl_locale; pthread_mutex_t updateMutex; - GRSurface* backgroundIcon[5]; + GRSurface* backgroundIcon[NR_ICONS]; GRSurface* *introFrames; GRSurface* *loopFrames; -- cgit v1.1