Explain hack to help slower receiver devices

This commit is contained in:
Aditya-Sood 2019-07-02 00:37:52 +05:30
parent eb4770ccfa
commit ce0cedf570
2 changed files with 4 additions and 2 deletions

View File

@ -231,7 +231,8 @@ public class DeviceListFragment extends ListFragment implements WifiP2pManager.P
if(groupInfo.isGroupOwner) fileReceiverDeviceAddress = selectedPeerDeviceInetAddress;
else fileReceiverDeviceAddress = groupInfo.groupOwnerAddress;
//TODO: Fix this
// Hack for allowing slower receiver devices to setup server before sender device requests to connect
showToast(localFileTransferActivity, R.string.preparing_files, Toast.LENGTH_LONG);
for(int i = 0; i < 20000000; i++);
for(int i = 0; i < totalFilesForTransfer; i++) {

View File

@ -288,7 +288,8 @@
<string name="device_status">Device Status</string>
<string name="your_device">Your Device:</string>
<string name="nearby_devices">NEARBY DEVICES</string>
<string name="no_devices_found">No devices detected. Tap on search button to try again</string>
<string name="no_devices_found">No devices detected. Tap on search button to try again.</string>
<string name="files_for_transfer">FILES FOR TRANSFER</string>
<string name="file_name">File Name</string>
<string name="preparing_files">Preparing files for transfer...</string>
</resources>