Loading android/app/src/com/android/bluetooth/opp/BluetoothOppSendFileInfo.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -224,8 +224,10 @@ public class BluetoothOppSendFileInfo { private static long getStreamSize(FileInputStream is) throws IOException { private static long getStreamSize(FileInputStream is) throws IOException { long length = 0; long length = 0; byte unused[] = new byte[4096]; byte unused[] = new byte[4096]; while (is.available() > 0) { int bytesRead = is.read(unused, 0, 4096); length += is.read(unused, 0, 4096); while (bytesRead != -1) { length += bytesRead; bytesRead = is.read(unused, 0, 4096); } } return length; return length; } } Loading Loading
android/app/src/com/android/bluetooth/opp/BluetoothOppSendFileInfo.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -224,8 +224,10 @@ public class BluetoothOppSendFileInfo { private static long getStreamSize(FileInputStream is) throws IOException { private static long getStreamSize(FileInputStream is) throws IOException { long length = 0; long length = 0; byte unused[] = new byte[4096]; byte unused[] = new byte[4096]; while (is.available() > 0) { int bytesRead = is.read(unused, 0, 4096); length += is.read(unused, 0, 4096); while (bytesRead != -1) { length += bytesRead; bytesRead = is.read(unused, 0, 4096); } } return length; return length; } } Loading