Skip to content

Commit

Permalink
connectionLog messages updated with post newline
Browse files Browse the repository at this point in the history
  • Loading branch information
AnjanaSenanayake committed Mar 20, 2020
1 parent d9fa2c6 commit bae386c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import android.os.Handler;
import android.util.Log;

import com.mobilegenomics.f5n.activity.MinITActivity;
import com.mobilegenomics.f5n.dto.State;
import com.mobilegenomics.f5n.dto.WrapperObject;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
Expand Down Expand Up @@ -90,14 +92,15 @@ private static String connectionLog(ConnectionMessages connectionMessages, Strin
String strInstance;
if (connectionMessages == ConnectionMessages.TO_SERVER) {
strInstance = "To server: " + logInstance;
logMessage.append("\n").append(strInstance);
logMessage.append(strInstance);
} else if (connectionMessages == ConnectionMessages.FROM_SERVER) {
strInstance = "From server: " + logInstance;
logMessage.append("\n").append(strInstance);
logMessage.append(strInstance);
} else {
strInstance = logInstance;
logMessage.append("\n").append(strInstance);
logMessage.append(strInstance);
}
logMessage.append("\n");
return strInstance;
}

Expand Down

0 comments on commit bae386c

Please sign in to comment.