Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 825b6b0c authored by Tim Kryger's avatar Tim Kryger Committed by Tao Bao
Browse files

Remove outdated reference to icon_installing.png

The Wear recovery UI doesn't draw the installing icon but it was still
trying to open it.  Ever since these images were removed eight months
ago, this has resulted in an error printing to the screen at runtime.
Since the image wasn't really used, the lines to open it can simply be
removed.

Bug: 33203397
Change-Id: Id820f6d75e316c51d19b6095df407ecd61c0410e
(cherry picked from commit 48be23c8)
parent b8d6523a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;
}