Fix bug: Last file being transferred gets corrupted

Best guess - Calling disconnect after sending the last file was somehow corrupting the output stream to the server. Replacing with Toast (or just finish()) has corrected it.
This commit is contained in:
Aditya-Sood 2019-06-26 22:47:54 +05:30
parent 8874204d0f
commit cf66b61a7d

View File

@ -633,7 +633,7 @@ public class DeviceListFragment extends ListFragment implements WifiP2pManager.P
});
if(deviceListFragment.allFilesSent()) {
((LocalFileTransferActivity) deviceListFragment.getActivity()).disconnect();
Toast.makeText(context, "All files transferred", Toast.LENGTH_SHORT).show();
}
}
}