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 {
|
||||
AssetFileDescriptor assetFd = null;
|
||||
try {
|
||||
if (mUri.getScheme().equals(ContentResolver.SCHEME_CONTENT)) {
|
||||
if (ContentResolver.SCHEME_CONTENT.equals(mUri.getScheme())) {
|
||||
assetFd = mResolver.openTypedAssetFileDescriptor(mUri,
|
||||
"image/*", null);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user