Merge "DO NOT MERGE. Fix asset file descriptor for pipe based fds." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
bd8ff5b5d4
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user