Commit daab7e09cdfeae2bb2f367fce457fc62c956f239

Authored by 杨帅
1 parent 6c66014a

1 优化打点功能逻辑

moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/frame/view/CollRunningMapFragmentView.java
... ... @@ -294,6 +294,9 @@ public class CollRunningMapFragmentView implements MvpView, SensorEventListener
294 294 isShowEndFollowAddress = true;
295 295 Toast.makeText(getContext(), "正在获取当前地点信息,请稍后", Toast.LENGTH_SHORT).show();
296 296 }
  297 + } else {
  298 + isShowEndFollowAddress = true;
  299 + Toast.makeText(getContext(), "正在获取当前地点信息,请稍后", Toast.LENGTH_SHORT).show();
297 300 }
298 301 }
299 302 }
... ...
moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/service/CollKeepLiveService.java
... ... @@ -206,6 +206,8 @@ public class CollKeepLiveService extends Service implements MediaPlayer.OnComple
206 206 mNM.createNotificationChannel(channel);
207 207 }
208 208 notification = new NotificationCompat.Builder(this, CHANNEL_ONE_ID)
  209 + .setContentTitle(getResources().getString(R.string.app_name))
  210 + .setContentText("正在记录您的运动")
209 211 .setWhen(System.currentTimeMillis())
210 212 .setSound(null)
211 213 .build();
... ...