mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-19 04:16:27 -04:00
Minor restyle
This commit is contained in:
parent
1f154259bb
commit
a1c5c6a1ed
@ -54,7 +54,9 @@ class ReceiverDeviceAsyncTask extends AsyncTask<Void, Integer, Boolean> {
|
||||
incomingFileName = fileItems.get(fileItemIndex).getFileName();
|
||||
|
||||
try (Socket client = serverSocket.accept()) {
|
||||
if (BuildConfig.DEBUG) Log.d(TAG, "Server: Client connected for file " + fileItems.get(fileItemIndex).getFileName());
|
||||
if (BuildConfig.DEBUG) {
|
||||
Log.d(TAG, "Sender device connected for " + fileItems.get(fileItemIndex).getFileName());
|
||||
}
|
||||
publishProgress(fileItemIndex, SENDING);
|
||||
|
||||
final File clientNoteFileLocation = new File(zimStorageRootPath + incomingFileName);
|
||||
|
@ -51,7 +51,7 @@ class SenderDeviceAsyncTask extends AsyncTask<FileItem, Integer, Boolean> {
|
||||
String hostAddress = wifiDirectManager.getFileReceiverDeviceAddress().getHostAddress();
|
||||
boolean isTransferErrorFree = true;
|
||||
|
||||
for (int fileIndex = 0; fileIndex < fileItems.length && !isCancelled(); fileIndex++) { // Uri of file to be transferred
|
||||
for (int fileIndex = 0; fileIndex < fileItems.length && !isCancelled(); fileIndex++) {
|
||||
FileItem fileItem = fileItems[fileIndex];
|
||||
|
||||
try (Socket socket = new Socket(); // Represents the sender device
|
||||
|
Loading…
x
Reference in New Issue
Block a user