Fix the animation disappeared issue

The animation movie disappears due to the incorrect logic of
commit c11f46259a.

Change-Id: I9c0eac2bf2950fe20e931da367036ddf38d81f52
This commit is contained in:
Chih-Wei Huang
2010-11-03 15:33:00 +08:00
parent 9df48a0305
commit 2978751310

View File

@@ -248,13 +248,11 @@ status_t BootAnimation::readyToRun() {
mFlingerSurface = s;
mAndroidAnimation = true;
if ((access(USER_BOOTANIMATION_FILE, R_OK) == 0) ||
(access(SYSTEM_BOOTANIMATION_FILE, R_OK) == 0)) {
if ((mZip.open(USER_BOOTANIMATION_FILE) != NO_ERROR) ||
(mZip.open(SYSTEM_BOOTANIMATION_FILE) != NO_ERROR)) {
mAndroidAnimation = false;
}
}
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;
return NO_ERROR;
}