Merge "Fix error code when media is filled up." into froyo

This commit is contained in:
Suchi Amalapurapu
2010-04-22 15:52:25 -07:00
committed by Android (Google) Code Review

View File

@@ -416,7 +416,7 @@ public class DefaultContainerService extends IntentService {
return PackageHelper.RECOMMEND_INSTALL_EXTERNAL;
}
}
if (checkExt || checkBoth && !mediaAvailable) {
if ((checkExt || checkBoth) && !mediaAvailable) {
return PackageHelper.RECOMMEND_MEDIA_UNAVAILABLE;
}
return PackageHelper.RECOMMEND_FAILED_INSUFFICIENT_STORAGE;