commit | 25dcb3a1b19ff5f83f7a01be2d0757ee43b88331 | [log] [tgz] |
---|---|---|
author | Santiago Etchebehere <santie@google.com> | Thu Jul 25 16:59:08 2019 -0700 |
committer | Santiago Etchebehere <santie@google.com> | Thu Jul 25 16:59:08 2019 -0700 |
tree | 730b12c5e71975e9e17b981cce30a04ae40f25ad | |
parent | 98860080ecab56a8dca1f11d353cfe500c0e96af [diff] |
Do not openInputStream twice without closing StreamableAsset was calling openInputStream and then calculateRawDimensions (which in turns calls openInputStream) without closing it. This is problematic when the asset is being streamed from the micropaper content provider. There's really no need to open the input stream before calling calculateRawDimensions as this method will also check for input stream being null. Bug: 138404632 Change-Id: I2244ef1a480731480d2a0d1d7c552715a060cd22