Merge "Fix .equals call in ImageDecoder" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
33696c1cca
@@ -270,7 +270,7 @@ public final class ImageDecoder implements AutoCloseable {
|
|||||||
public ImageDecoder createImageDecoder(boolean preferAnimation) throws IOException {
|
public ImageDecoder createImageDecoder(boolean preferAnimation) throws IOException {
|
||||||
AssetFileDescriptor assetFd = null;
|
AssetFileDescriptor assetFd = null;
|
||||||
try {
|
try {
|
||||||
if (mUri.getScheme().equals(ContentResolver.SCHEME_CONTENT)) {
|
if (ContentResolver.SCHEME_CONTENT.equals(mUri.getScheme())) {
|
||||||
assetFd = mResolver.openTypedAssetFileDescriptor(mUri,
|
assetFd = mResolver.openTypedAssetFileDescriptor(mUri,
|
||||||
"image/*", null);
|
"image/*", null);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user