Update AssetDataSource.java

This commit is contained in:
Nati Dykstein 2015-04-22 22:25:44 +03:00
parent 647d9bedb8
commit a43dd6ba68

View file

@ -105,19 +105,18 @@ public final class AssetDataSource implements DataSource {
listener.onBytesTransferred(bytesRead);
}
}
Log.i("AssetDataSource", "read(). bytesRead = " + bytesRead);
return bytesRead;
}
}
@Override
public void close() throws FileDataSourceException {
public void close() throws AssetDataSourceException {
if (assetInputStream != null) {
try {
assetInputStream.close();
} catch (IOException e) {
throw new FileDataSourceException(e);
throw new AssetDataSourceException(e);
} finally {
assetInputStream = null;