Explorar o código

[공통][New] 2줄 로직 수정 2

hyodong.min %!s(int64=7) %!d(string=hai) anos
pai
achega
6586a04a35

+ 5 - 4
app/src/main/java/kr/co/zumo/app/lifeplus/util/StringUtil.java

@@ -8,7 +8,6 @@ import android.support.annotation.Nullable;
 import android.telephony.PhoneNumberUtils;
 import android.text.Html;
 import android.text.Spanned;
-import android.util.Log;
 
 import java.io.UnsupportedEncodingException;
 import java.security.MessageDigest;
@@ -335,8 +334,10 @@ public class StringUtil {
     }
 
     // \\n 문자를 줄바꿈 문자로 변경
-    str = str.replaceAll("\\\\n", "\n");
-    str = str.replaceAll("\r\n", "\n").replaceAll("\n", " ").replaceAll("  ", " ");
+    str = str.replaceAll("\\\\n", "\n")
+      .replaceAll("\r\n", "\n")
+      .replaceAll("\n", " ")
+      .replaceAll("  ", " ");
 
     // 줄바꿈이 있으면 그대로 전달
     /*if (str.contains("\n")) {
@@ -384,7 +385,7 @@ public class StringUtil {
           break;
         }
       }
-      Log.i("APP# StringUtil | twoLine", "|" + "str: " + str + ", target: " + targetIndex);
+//      Log.i("APP# StringUtil | twoLine", "|" + "str: " + str + ", target: " + targetIndex);
       return str.substring(0, targetIndex) + "\n" + str.substring(targetIndex + 1);
 
 //      String[] titles = str.split(" ");