mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 05:04:50 -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()) {
|
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