Commit a43dd6ba by Nati Dykstein

Update AssetDataSource.java

parent 647d9bed
...@@ -105,19 +105,18 @@ public final class AssetDataSource implements DataSource { ...@@ -105,19 +105,18 @@ public final class AssetDataSource implements DataSource {
listener.onBytesTransferred(bytesRead); listener.onBytesTransferred(bytesRead);
} }
} }
Log.i("AssetDataSource", "read(). bytesRead = " + bytesRead);
return bytesRead; return bytesRead;
} }
} }
@Override @Override
public void close() throws FileDataSourceException { public void close() throws AssetDataSourceException {
if (assetInputStream != null) { if (assetInputStream != null) {
try { try {
assetInputStream.close(); assetInputStream.close();
} catch (IOException e) { } catch (IOException e) {
throw new FileDataSourceException(e); throw new AssetDataSourceException(e);
} finally { } finally {
assetInputStream = null; assetInputStream = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment