DO NOT MERGE. Fix asset file descriptor for pipe based fds.

Change-Id: Ic366d01f91017109abfcfa65bd2231dd7416ce71
This commit is contained in:
Jeff Hamilton
2010-10-28 15:05:27 -05:00
parent 7d452f693f
commit 145fe77dbf

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;
}
}
/**