Commit 069af116e4c3d1f3608a74622e533752a7ae0339

Authored by 杨帅
1 parent 1fdb33d4

1 修改赛事详情页全屏返回标题在无网络切换到有网络时会显示的问题

config.gradle
@@ -21,7 +21,7 @@ ext { @@ -21,7 +21,7 @@ ext {
21 //编译方式 21 //编译方式
22 debug : false, 22 debug : false,
23 //版本号 23 //版本号
24 - version: "0.8.3", 24 + version: "0.8.4",
25 //Lib库前缀 25 //Lib库前缀
26 packeg : "com.cnlive.module", 26 packeg : "com.cnlive.module",
27 //Lib库名称 27 //Lib库名称
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/OnGoingFragmentView.java
@@ -102,7 +102,7 @@ public class OnGoingFragmentView implements MvpView { @@ -102,7 +102,7 @@ public class OnGoingFragmentView implements MvpView {
102 if (fragment.getActivity() == null) { 102 if (fragment.getActivity() == null) {
103 return; 103 return;
104 } 104 }
105 - fragment.binding.flTop.setVisibility(View.VISIBLE); 105 + fragment.binding.flTop.setVisibility(View.GONE);
106 this.runRaceDetailInfo = runRaceDetailInfo; 106 this.runRaceDetailInfo = runRaceDetailInfo;
107 if (null != runRaceDetailInfo) { 107 if (null != runRaceDetailInfo) {
108 if (null != runRaceDetailInfo.getNewDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getNewDescription())) { 108 if (null != runRaceDetailInfo.getNewDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getNewDescription())) {
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
@@ -168,7 +168,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { @@ -168,7 +168,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener {
168 if (fragment.getActivity() == null) { 168 if (fragment.getActivity() == null) {
169 return; 169 return;
170 } 170 }
171 - fragment.binding.flTop.setVisibility(View.VISIBLE); 171 +
172 if (null != runRaceDetailInfo) { 172 if (null != runRaceDetailInfo) {
173 if (null != runRaceDetailInfo.getNewDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getNewDescription())) { 173 if (null != runRaceDetailInfo.getNewDescription() && !TextUtils.isEmpty(runRaceDetailInfo.getNewDescription())) {
174 initWebView(runRaceDetailInfo.getNewDescription()); 174 initWebView(runRaceDetailInfo.getNewDescription());
@@ -382,6 +382,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { @@ -382,6 +382,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener {
382 } else { 382 } else {
383 fragment.binding.slidingLayout.setPanelHeight(ScreenUtil.dip2px(getContext(), 181)); 383 fragment.binding.slidingLayout.setPanelHeight(ScreenUtil.dip2px(getContext(), 181));
384 } 384 }
  385 + fragment.binding.flTop.setVisibility(View.GONE);
385 // //根据标题行数,自动调整卡片大小 386 // //根据标题行数,自动调整卡片大小
386 // fragment.binding.includeStreet.tvRaceTitle.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { 387 // fragment.binding.includeStreet.tvRaceTitle.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {
387 // @Override 388 // @Override