From bae386c664f5ee0236f48b75623535919f366aba Mon Sep 17 00:00:00 2001 From: AnjanaSenanayake Date: Fri, 20 Mar 2020 17:05:24 +0530 Subject: [PATCH] connectionLog messages updated with post newline --- .../f5n/support/ServerConnectionUtils.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/mobilegenomics/f5n/support/ServerConnectionUtils.java b/app/src/main/java/com/mobilegenomics/f5n/support/ServerConnectionUtils.java index d2766d50..2b2a0ebc 100644 --- a/app/src/main/java/com/mobilegenomics/f5n/support/ServerConnectionUtils.java +++ b/app/src/main/java/com/mobilegenomics/f5n/support/ServerConnectionUtils.java @@ -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; @@ -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; }