Merge "DO NOT MERGE. Fix asset file descriptor for pipe based fds." into gingerbread

This commit is contained in:
Jeff Hamilton
2010-10-28 14:01:21 -07:00
committed by Android (Google) Code Review

View File

@@ -130,7 +130,11 @@ public class AssetFileDescriptor implements Parcelable {
* Checks whether this file descriptor is for a memory file.
*/
private boolean isMemoryFile() throws IOException {
return MemoryFile.isMemoryFile(mFd.getFileDescriptor());
try {
return MemoryFile.isMemoryFile(mFd.getFileDescriptor());
} catch (IOException e) {
return false;
}
}
/**