Commit dda8080d5b6b2144301583a98d249ff234357a64
1 parent
069af116
1 网页换行
Showing
4 changed files
with
4 additions
and
4 deletions
config.gradle
moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/frame/view/CollRunRaceDetailFragmentView.java
| ... | ... | @@ -151,7 +151,7 @@ public class CollRunRaceDetailFragmentView implements MvpView, SensorEventListen |
| 151 | 151 | if (null != runRaceDetailInfo.getNewDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getNewDescription())) { |
| 152 | 152 | initWebView(runRaceDetailInfo.getNewDescription()); |
| 153 | 153 | } else if (null != runRaceDetailInfo.getDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getDescription())) { |
| 154 | - initWebView(runRaceDetailInfo.getDescription().replaceAll("\n","<br>")); | |
| 154 | + initWebView(runRaceDetailInfo.getDescription().replace("\n","<br>")); | |
| 155 | 155 | } |
| 156 | 156 | } |
| 157 | 157 | CollCommonInfo.setUserId(getContext(), uid); | ... | ... |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/OnGoingFragmentView.java
| ... | ... | @@ -108,7 +108,7 @@ public class OnGoingFragmentView implements MvpView { |
| 108 | 108 | if (null != runRaceDetailInfo.getNewDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getNewDescription())) { |
| 109 | 109 | initWebView(runRaceDetailInfo.getNewDescription()); |
| 110 | 110 | } else if (null != runRaceDetailInfo.getDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getDescription())) { |
| 111 | - initWebView(runRaceDetailInfo.getDescription().replaceAll("\n", "<br>")); | |
| 111 | + initWebView(runRaceDetailInfo.getDescription().replace("\n", "<br>")); | |
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | //轨迹开始时间 | ... | ... |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
| ... | ... | @@ -173,7 +173,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { |
| 173 | 173 | if (null != runRaceDetailInfo.getNewDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getNewDescription())) { |
| 174 | 174 | initWebView(runRaceDetailInfo.getNewDescription()); |
| 175 | 175 | } else if (null != runRaceDetailInfo.getDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getDescription())) { |
| 176 | - initWebView(runRaceDetailInfo.getDescription().replaceAll("\n", "<br>")); | |
| 176 | + initWebView(runRaceDetailInfo.getDescription().replace("\n", "<br>")); | |
| 177 | 177 | } |
| 178 | 178 | } |
| 179 | 179 | queryResultPoints = new ArrayList<>(); | ... | ... |