We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9df48a0 commit 2978751Copy full SHA for 2978751
cmds/bootanimation/BootAnimation.cpp
@@ -248,13 +248,11 @@ status_t BootAnimation::readyToRun() {
248
mFlingerSurface = s;
249
250
mAndroidAnimation = true;
251
- if ((access(USER_BOOTANIMATION_FILE, R_OK) == 0) ||
252
- (access(SYSTEM_BOOTANIMATION_FILE, R_OK) == 0)) {
253
- if ((mZip.open(USER_BOOTANIMATION_FILE) != NO_ERROR) ||
254
- (mZip.open(SYSTEM_BOOTANIMATION_FILE) != NO_ERROR)) {
255
- mAndroidAnimation = false;
256
- }
257
+ if ((access(USER_BOOTANIMATION_FILE, R_OK) == 0) &&
+ (mZip.open(USER_BOOTANIMATION_FILE) == NO_ERROR) ||
+ (access(SYSTEM_BOOTANIMATION_FILE, R_OK) == 0) &&
+ (mZip.open(SYSTEM_BOOTANIMATION_FILE) == NO_ERROR))
+ mAndroidAnimation = false;
258
259
return NO_ERROR;
260
}
0 commit comments