Android Wear O Preview 3 (Android O Beta 2)
fix incorrect use of FileDescriptor
PrintDocument.getData() returns a ParcelFileDescriptor which must be retained
closed gracefully and calling .getFileDescriptor() does not assure this.
The result is a possible IOException when the ParcelFileDescriptor is finalized
and closed out from under the FileDescriptor.
Test: any print will exercise this code
Change-Id: I6644f1d5aee5f26920fa36e50cf5b9a000f6cf7d
Signed-off-by: Glade Diviney <mopriadevteam@gmail.com>
2 files changed