summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Kryger <tkryger@google.com>2016-12-16 02:20:26 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-12-16 02:20:26 +0100
commit5c38124f8fefe722a57081bd80d12f1c8d63261f (patch)
treef0b4934392d2d09568598d263546aafcebe4349d
parentMerge "Add update_bootloader_message() to fix two-step OTAs." am: 26d972c9d2 am: 9a707b08ef am: cb15594696 (diff)
parentresolve merge conflicts of 48be23c to nyc-mr1-dev-plus-aosp (diff)
downloadandroid_bootable_recovery-5c38124f8fefe722a57081bd80d12f1c8d63261f.tar
android_bootable_recovery-5c38124f8fefe722a57081bd80d12f1c8d63261f.tar.gz
android_bootable_recovery-5c38124f8fefe722a57081bd80d12f1c8d63261f.tar.bz2
android_bootable_recovery-5c38124f8fefe722a57081bd80d12f1c8d63261f.tar.lz
android_bootable_recovery-5c38124f8fefe722a57081bd80d12f1c8d63261f.tar.xz
android_bootable_recovery-5c38124f8fefe722a57081bd80d12f1c8d63261f.tar.zst
android_bootable_recovery-5c38124f8fefe722a57081bd80d12f1c8d63261f.zip
-rw-r--r--wear_ui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index 11e5a7168..bdb0ef009 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -209,10 +209,12 @@ bool WearRecoveryUI::Init() {
return false;
}
- LoadBitmap("icon_installing", &backgroundIcon[INSTALLING_UPDATE]);
- backgroundIcon[ERASING] = backgroundIcon[INSTALLING_UPDATE];
LoadBitmap("icon_error", &backgroundIcon[ERROR]);
backgroundIcon[NO_COMMAND] = backgroundIcon[ERROR];
+
+ // This leaves backgroundIcon[INSTALLING_UPDATE] and backgroundIcon[ERASING]
+ // as NULL which is fine since draw_background_locked() doesn't use them.
+
return true;
}