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