Fix double closing on memory file (#1579)

Co-authored-by: fanchao <git@fanchao.dev>
pull/1583/head
Fanchao Liu 10 months ago committed by ThomasSession
parent dba0ca910e
commit d23d8f3b07

@ -22,7 +22,7 @@ public class MemoryFileUtil {
int fd = field.getInt(fileDescriptor);
return ParcelFileDescriptor.adoptFd(fd);
return ParcelFileDescriptor.fromFd(fd);
} catch (IllegalAccessException e) {
throw new IOException(e);
} catch (InvocationTargetException e) {

Loading…
Cancel
Save