Revert unrelated ContentDataSource change
This commit is contained in:
parent
5a72ca6b36
commit
6a3b66987a
@ -142,13 +142,22 @@ public final class ContentDataSource implements DataSource {
|
||||
@Override
|
||||
public void close() throws ContentDataSourceException {
|
||||
uri = null;
|
||||
if (inputStream != null) {
|
||||
try {
|
||||
try {
|
||||
if (inputStream != null) {
|
||||
inputStream.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw new ContentDataSourceException(e);
|
||||
} finally {
|
||||
inputStream = null;
|
||||
try {
|
||||
if (assetFileDescriptor != null) {
|
||||
assetFileDescriptor.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw new ContentDataSourceException(e);
|
||||
} finally {
|
||||
inputStream = null;
|
||||
assetFileDescriptor = null;
|
||||
if (opened) {
|
||||
opened = false;
|
||||
if (listener != null) {
|
||||
@ -157,13 +166,6 @@ public final class ContentDataSource implements DataSource {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (assetFileDescriptor != null) {
|
||||
try {
|
||||
assetFileDescriptor.close();
|
||||
} catch (Exception e) {
|
||||
}
|
||||
assetFileDescriptor = null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user