Merge "Fix rare crash seen when dereferencing backgroundIcon[NONE]."

This commit is contained in:
Doug Zongker 2013-11-18 17:58:12 +00:00 committed by Android (Google) Code Review
commit 9fb676aa92

View file

@ -376,6 +376,7 @@ void ScreenRecoveryUI::Init()
text_cols = gr_fb_width() / char_width;
if (text_cols > kMaxCols - 1) text_cols = kMaxCols - 1;
backgroundIcon[NONE] = NULL;
LoadBitmap("icon_installing", &backgroundIcon[INSTALLING_UPDATE]);
backgroundIcon[ERASING] = backgroundIcon[INSTALLING_UPDATE];
LoadBitmap("icon_error", &backgroundIcon[ERROR]);