You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 behavior PaparazziAssetRepository should return an AssetInputStream from PaparazziAssetRepository.
Additional information:
Paparazzi Version: 1.3.5
OS: MacOS
Compile SDK: 35
Gradle Version: 8.11.1
Android Gradle Plugin Version: 8.7.2
The text was updated successfully, but these errors were encountered:
Yep it's definitely bad design on ImageDecoder's part. Worst case we can probably work around this in Coil by checking if the returned input stream is an AssetInputStream ahead of time.
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:
The text was updated successfully, but these errors were encountered: