diff options
author | Leon Scroggins III <scroggo@google.com> | 2018-01-31 20:39:37 -0500 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2018-02-06 10:21:36 -0500 |
commit | 40c59fdef0087ea0325e447ae0ee113cc8ca7c15 (patch) | |
tree | a1eb2bd7e4d0f9fa5c01611c1c4e17b946026300 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 34b58512cbec4b77803d412e4ce089a95dd1fec2 (diff) |
Call ImageDecoder directly in ResourcesImpl
Test: Existing tests
Add a new (hidden) ImageDecoder.Source that accepts an AssetInputStream.
This allows us to create an AnimatedImageDrawable without fear of the
client closing the stream.
Call it from ResourcesImpl instead of Drawable.createFromResourceStream.
Change-Id: I07e00ca60c97538335a6310e830b73211fd8e7bb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions