You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Bitmap: implement decodeStream, getPixels and recycle
This commit is contained in:
@@ -567,8 +567,8 @@ public class BitmapFactory {
|
||||
Trace.traceBegin(Trace.TRACE_TAG_GRAPHICS, "decodeBitmap");
|
||||
try {
|
||||
if (is instanceof AssetManager.AssetInputStream) {
|
||||
final int asset = ((AssetManager.AssetInputStream) is).getAssetInt();
|
||||
bm = nativeDecodeAsset(asset, outPadding, opts);
|
||||
final String fileName = ((AssetManager.AssetInputStream) is).fileName;
|
||||
bm = new Bitmap(fileName);
|
||||
} else {
|
||||
bm = decodeStreamInternal(is, outPadding, opts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user