mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 03:54:18 -04:00
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:
parent
8874204d0f
commit
cf66b61a7d
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user