Android o preview 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
tree: 54e00906258a34855ffba13c9ec966d551bb3246
  1. jni/
  2. res/
  3. src/
  4. .gitignore
  5. Android.mk
  6. AndroidManifest.xml
  7. proguard.flags