Commit df2ef859 by 徐健

backup

parent ecf4b437
...@@ -45,7 +45,7 @@ ext { ...@@ -45,7 +45,7 @@ ext {
"m-confide" : "0.0.47", "m-confide" : "0.0.47",
"m-consultant" : "0.0.56.1", "m-consultant" : "0.0.56.1",
"m-fm" : "0.0.28", "m-fm" : "0.0.28",
"m-user" : "0.0.55", "m-user" : "0.0.56",
"m-home" : "0.0.18", "m-home" : "0.0.18",
"m-im" : "0.0.11", "m-im" : "0.0.11",
"m-dynamic" : "0.0.5.1", "m-dynamic" : "0.0.5.1",
......
...@@ -123,8 +123,7 @@ public class UserServiceImp : IUserService { ...@@ -123,8 +123,7 @@ public class UserServiceImp : IUserService {
val lastVersionCode : Int = UserHelper.getUsetSetting()?.lastVersionCode?:0 val lastVersionCode : Int = UserHelper.getUsetSetting()?.lastVersionCode?:0
val currentVersionCode : Int = RxAppTool.getAppVersionCode(BaseApp.getApp()) val currentVersionCode : Int = RxAppTool.getAppVersionCode(BaseApp.getApp())
if (lastVersionCode < currentVersionCode) { if (lastVersionCode < currentVersionCode) {
// 这行代码放在隐私弹框同意按钮agreeAction中,必须确保注册前置页面是用户看到的第一个功能页面 UserHelper.getUsetSetting()?.lastVersionCode = currentVersionCode
// UserHelper.getUsetSetting()?.lastVersionCode = currentVersionCode
return true return true
} }
return false return false
......
...@@ -106,8 +106,6 @@ class SecretActivity : BaseActivity() { ...@@ -106,8 +106,6 @@ class SecretActivity : BaseActivity() {
} }
private fun agreeAction() { private fun agreeAction() {
//这行代码是从isFirstStart中取出的,为了确保注册前置功能
UserHelper.getUsetSetting()?.lastVersionCode = RxAppTool.getAppVersionCode(BaseApp.getApp())
SharedPreferencesEditor.putString("hasAgreeSecret", "true") SharedPreferencesEditor.putString("hasAgreeSecret", "true")
setResult(SECRET_PAGE_REQUEST_OK_CODE) setResult(SECRET_PAGE_REQUEST_OK_CODE)
finish() finish()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment