ソースを参照

SMT上料 站位换行显示

RaoMeng 4 年 前
コミット
5bacdf4c43

+ 6 - 6
app/src/main/java/com/uas/uaspda/fragment/SCSMTInFragment.java

@@ -319,8 +319,8 @@ public class SCSMTInFragment extends BaseFragment implements View.OnClickListene
                                     String noticeStr = "未上料站位" + CommonUtil.doubleFormat(notCheckCount) + "条";
                                     JSONArray notFeedArray = dataObject.optJSONArray("NotFeedLocation");
                                     if (notFeedArray != null && notFeedArray.length() != 0) {
-                                        notice = notice + "\n站位:";
-                                        noticeStr = noticeStr + "\n站位:";
+                                        notice = notice + "\n站位:\n";
+                                        noticeStr = noticeStr + "\n站位:\n";
                                         for (int i = 0; i < notFeedArray.length(); i++) {
                                             JSONObject notCheckObject = notFeedArray.optJSONObject(i);
                                             if (notCheckObject != null) {
@@ -329,8 +329,8 @@ public class SCSMTInFragment extends BaseFragment implements View.OnClickListene
                                                     mCollectEditText.setText(psl_location);
                                                     confirmEvent(psl_location);
                                                 }
-                                                notice = notice + psl_location + ",";
-                                                noticeStr = noticeStr + psl_location + ",";
+                                                notice = notice + psl_location + "\n";
+                                                noticeStr = noticeStr + psl_location + "\n";
                                             }
                                         }
                                         notice = notice.substring(0, notice.length() - 1);
@@ -435,7 +435,7 @@ public class SCSMTInFragment extends BaseFragment implements View.OnClickListene
 
                                     JSONArray notFeedArray = dataObject.optJSONArray("NotFeedLocation");
                                     if (notFeedArray != null && notFeedArray.length() != 0) {
-                                        notice = notice + "\n站位:";
+                                        notice = notice + "\n站位:\n";
                                         for (int i = 0; i < notFeedArray.length(); i++) {
                                             JSONObject notCheckObject = notFeedArray.optJSONObject(i);
                                             if (notCheckObject != null) {
@@ -444,7 +444,7 @@ public class SCSMTInFragment extends BaseFragment implements View.OnClickListene
                                                     mCollectEditText.setText(psl_location);
                                                     confirmEvent(psl_location);
                                                 }
-                                                notice = notice + psl_location + ",";
+                                                notice = notice + psl_location + "\n";
                                             }
                                         }
                                         notice = notice.substring(0, notice.length() - 1);