summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-08-25 16:48:48 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-08-25 16:48:48 +0000
commit1de5695524c40bf9c6dc555198c63d21c3647252 (patch)
tree74b573c2ce1e5c7ab5e48c15c9a4f352d66cd8bf /cmds/bootanimation/BootAnimation.cpp
parentcba232a1357bf89dd422c4f76cf13b336ad4a029 (diff)
parente8fb3c7c870065e48fd338fca07192b33fb0237b (diff)
Merge "Migrate from android::String isEmpty to empty [bootanimation]" into main
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp4
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 {