apache/cordova-plugin-file-transfer — pull request #14 by cdmahoney (2014-01-10 08:45:25+00:00)
Title: CB-5631: Progress loaded count in Android 

SimpleTrackingInputStream.getTotalRawBytesRead returns twice the number of bytes actually read.

InputStream.read(byte[] buffer) calls InputStream.read(byte[] bytes, int offset, int count). As SimpleTrackingInputStream overrides both these methods a call to SimpleTrackingInputStream.read(byte[] buffer) results in a call to SimpleTrackingInputStream.read(byte[] bytes, int offset, int count) - and two calls to SimpleTrackingInputStream.updateBytesRead, so the counter bytesRead gets incremented twice for each read.

This change removes the implementation of SimpleTrackingInputStream.read(byte[] buffer).