Fix double closing on memory file (#1579)

Co-authored-by: fanchao <git@fanchao.dev>
pull/1554/merge
Fanchao Liu 9 months ago committed by GitHub
parent a495ec232a
commit dec02cef5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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