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>
This commit is contained in:
committed by
Android Git Automerger
parent
f24fd7e847
commit
5b468fc930
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user