commit | 8cd48574a755bea86243e9f9eabaee341ecf9c60 | [log] [tgz] |
---|---|---|
author | Gilles Debunne <debunne@google.com> | Thu Jul 15 18:06:36 2010 -0700 |
committer | Gilles Debunne <debunne@google.com> | Fri Jul 23 13:40:59 2010 -0700 |
tree | d22d1899d4a218b43c042bf4c3bf30e9b14f6063 | |
parent | 021697ad3d4ef981d0deae1fa223ed06f30df738 [diff] |
Fixed bug in BitmapFactory.decodeStream Downloading images over a slow connection could result in errors and null images. The JavaInputStreamAdaptor::do_skip method was correctly called in a loop (to handle the EOF case using read()), but the amount that was skipped at each time was not decreased by the amount already skipped. Bug http://code.google.com/p/android/issues/detail?id=6066 Cherry picked from master CL57808 Change-Id: Ie6856898b21ba31de1209e1f995b4ae784c919b9