tag | c85bb8b38a7bed6b0ade53e2150410092d6b72c4 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon May 22 11:30:28 2017 -0700 |
object | 086d839a5569f261fe83473ebfed37cc8ab1b433 |
Android o preview 2
commit | 086d839a5569f261fe83473ebfed37cc8ab1b433 | [log] [tgz] |
---|---|---|
author | Glade Diviney <mopriadevteam@gmail.com> | Wed Apr 05 19:58:28 2017 -0700 |
committer | Glade Diviney <mopriadevteam@gmail.com> | Wed Apr 05 20:07:41 2017 -0700 |
tree | 54e00906258a34855ffba13c9ec966d551bb3246 | |
parent | 77cf3d4a129e4ba831f75f8f3722d82bde5f10c3 [diff] |
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>