Commit 045ca6f43851352d257c226723bd9146ff49cab7

Authored by 杨帅
1 parent dc7f335d

1 修复用户开始运动后,点击返回按钮,赛事详情页按钮无法及时刷新问题

app/src/main/AndroidManifest.xml
@@ -13,9 +13,7 @@ @@ -13,9 +13,7 @@
13 android:roundIcon="@mipmap/ic_launcher_round" 13 android:roundIcon="@mipmap/ic_launcher_round"
14 android:supportsRtl="true" 14 android:supportsRtl="true"
15 android:theme="@style/AppTheme"> 15 android:theme="@style/AppTheme">
16 - <activity  
17 - android:name=".MainActivity"  
18 - android:theme="@style/Theme.AppCompat.Light.NoActionBar"> 16 + <activity android:name=".MainActivity">
19 <intent-filter> 17 <intent-filter>
20 <action android:name="android.intent.action.MAIN" /> 18 <action android:name="android.intent.action.MAIN" />
21 19
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.4.7", 24 + version: "0.4.8",
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/collectionTrace/ui/activity/RaceListActivity.java
@@ -37,8 +37,6 @@ public class RaceListActivity extends AppCompatActivity { @@ -37,8 +37,6 @@ public class RaceListActivity extends AppCompatActivity {
37 CommonInfo.setUserId(this,getIntent().getStringExtra("userId")); 37 CommonInfo.setUserId(this,getIntent().getStringExtra("userId"));
38 CommonInfo.setUserNickName(this,getIntent().getStringExtra("userName")); 38 CommonInfo.setUserNickName(this,getIntent().getStringExtra("userName"));
39 CommonInfo.setUserIcon(this,getIntent().getStringExtra("userIcon")); 39 CommonInfo.setUserIcon(this,getIntent().getStringExtra("userIcon"));
40 - }else {  
41 - CommonInfo.setUserId(this, "10513196");  
42 } 40 }
43 getSupportFragmentManager().beginTransaction().replace(R.id.race_container,new RaceListFragment()).commit(); 41 getSupportFragmentManager().beginTransaction().replace(R.id.race_container,new RaceListFragment()).commit();
44 } 42 }
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/activity/RunLineActivity.java
@@ -39,8 +39,6 @@ public class RunLineActivity extends AppCompatActivity { @@ -39,8 +39,6 @@ public class RunLineActivity extends AppCompatActivity {
39 CommonInfo.setUserNickName(this,getIntent().getStringExtra("userName")); 39 CommonInfo.setUserNickName(this,getIntent().getStringExtra("userName"));
40 CommonInfo.setUserIcon(this,getIntent().getStringExtra("userIcon")); 40 CommonInfo.setUserIcon(this,getIntent().getStringExtra("userIcon"));
41 CommonInfo.setUserPhone(this,getIntent().getStringExtra("userPhone")); 41 CommonInfo.setUserPhone(this,getIntent().getStringExtra("userPhone"));
42 - }else {  
43 - CommonInfo.setUserId(this, "10513196");  
44 } 42 }
45 getSupportFragmentManager().beginTransaction().replace(R.id.run_line_container, new RunLineFragment()).commit(); 43 getSupportFragmentManager().beginTransaction().replace(R.id.run_line_container, new RunLineFragment()).commit();
46 } 44 }