diff options
author | 2023-08-24 19:11:22 +0000 | |
---|---|---|
committer | 2023-08-24 19:11:22 +0000 | |
commit | e8fb3c7c870065e48fd338fca07192b33fb0237b (patch) | |
tree | 417603a7211387b991e540fa3b1af737838619a1 /cmds/bootanimation/BootAnimation.cpp | |
parent | 34b915e1419a2fa18c8815d9b3193a02968c2047 (diff) |
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
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 8ceb9ec13d88..74ca41d0f9b4 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -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 { |