修改不能预置开关机动画问题

--- a/alps/frameworks/base/cmds/bootanimation/BootAnimation.cpp
+++ b/alps/frameworks/base/cmds/bootanimation/BootAnimation.cpp
@@ -439,14 +439,18 @@ status_t BootAnimation::readyToRun() {
         	
         	err = mZip.open("/data/app/hasnewboot.zip");
         	if(err != NO_ERROR){
-                mAndroidAnimation = true;
-          } else {
+                //mAndroidAnimation = true;
+        		err = mZip.open("/system/media/bootanimation.zip");
+				if (err != NO_ERROR) {
+					mAndroidAnimation = true;
+				}
+        	} else {
           	
-          	  err = mZip.open("/system/media/bootanimationnew.zip");
-              if (err != NO_ERROR) {
-                mAndroidAnimation = true;
-              }
-          }	        
+				  err = mZip.open("/system/media/bootanimationnew.zip");
+				  if (err != NO_ERROR) {
+					mAndroidAnimation = true;
+				  }
+        	}
            
         }

你可能感兴趣的:(修改不能预置开关机动画问题)