Description
Assets decoded via ImageDecoder.createSource(AssetManager assets, String fileName) throw a ClassCastException when loaded inside Paparazzi. This is because PaparazziAssetRepository returns a FileInputStream and ImageDecoderexpects an AssetInputStream.
Steps to Reproduce
Attempt to decode an asset with ImageDecoder.createSource(AssetManager assets, String fileName) in Paparazzi.
Expected behaviorPaparazziAssetRepository should return an AssetInputStream from PaparazziAssetRepository.
Description Assets decoded via
ImageDecoder.createSource(AssetManager assets, String fileName)
throw aClassCastException
when loaded inside Paparazzi. This is becausePaparazziAssetRepository
returns aFileInputStream
andImageDecoder
expects anAssetInputStream
.Steps to Reproduce Attempt to decode an asset with
ImageDecoder.createSource(AssetManager assets, String fileName)
in Paparazzi.Expected behavior
PaparazziAssetRepository
should return anAssetInputStream
fromPaparazziAssetRepository
.Additional information: