aboutsummaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authoryetta_wu <yetta_wu@asus.com>2013-06-25 15:03:11 +0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-07-02 12:35:58 -0700
commit5b468fc9305bf3adef681fa1e56364fc51761af8 (patch)
treecbce8a65f7e9ab286fe30938e6d65928d989e5dd /screen_ui.cpp
parentf24fd7e8479d54eaa2b73db5a3a3ad076a13f72d (diff)
downloadbootable_recovery-5b468fc9305bf3adef681fa1e56364fc51761af8.zip
bootable_recovery-5b468fc9305bf3adef681fa1e56364fc51761af8.tar.gz
bootable_recovery-5b468fc9305bf3adef681fa1e56364fc51761af8.tar.bz2
recovery: init backgroundIcon properly to avoid recovery mode crash
We met factory issue that some devices would crash in recovery mode because the backgroundIcon array did not reset to NULL when initializing. Bug: 9568624 Change-Id: I13c7a7cc1053a7ffdbadd71740c1a2b4a2af6bba Signed-off-by: yetta_wu <yetta_wu@asus.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index 222de00..93e2609 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -82,6 +82,10 @@ ScreenRecoveryUI::ScreenRecoveryUI() :
install_overlay_offset_y(190),
overlay_offset_x(-1),
overlay_offset_y(-1) {
+
+ for (int i = 0; i < 5; i++)
+ backgroundIcon[i] = NULL;
+
pthread_mutex_init(&updateMutex, NULL);
self = this;
}