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

Commit e8fb3c7c authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Migrate from android::String isEmpty to empty [bootanimation]

This empty method is different from the old one - it aligns with
std::string definition.

Bug: 295394788
Test: make checkbuild
Change-Id: Ib80c839df7ff7e3fb0ed2df7a00393d843d44d9d
parent 34b915e1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -691,7 +691,7 @@ void BootAnimation::resizeSurface(int newWidth, int newHeight) {

bool BootAnimation::preloadAnimation() {
    findBootAnimationFile();
    if (!mZipFileName.isEmpty()) {
    if (!mZipFileName.empty()) {
        mAnimation = loadAnimation(mZipFileName);
        return (mAnimation != nullptr);
    }
@@ -821,7 +821,7 @@ bool BootAnimation::threadLoop() {

    // We have no bootanimation file, so we use the stock android logo
    // animation.
    if (mZipFileName.isEmpty()) {
    if (mZipFileName.empty()) {
        ALOGD("No animation file");
        result = android();
    } else {