Commit 13dbb650 authored by shiyl's avatar shiyl

登录页保留用户协议和隐私政策

parent 0b50a205
......@@ -40,7 +40,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>(), IGetLifeAc
private lateinit var mCountDownTimerUtils: CountDownTimerUtils
private var mobileFinish = false
private var codeFinish = false
// private var protocolAgree = false
private var protocolAgree = false
override fun createViewBinding(): ActivityLoginBinding {
return ActivityLoginBinding.inflate(layoutInflater)
......@@ -121,10 +121,10 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>(), IGetLifeAc
ApiService.mobileLogin(this, paramsMap)
}
// viewBind.cbProtocol.setOnCheckedChangeListener { buttonView, isChecked ->
// protocolAgree = isChecked
// changeLoginButtonStatus()
// }
viewBind.cbProtocol.setOnCheckedChangeListener { buttonView, isChecked ->
protocolAgree = isChecked
changeLoginButtonStatus()
}
viewBind.tvProtocol.setOnClickListener {
val urlMap = HashMap<String, String>()
......@@ -140,7 +140,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>(), IGetLifeAc
}
private fun changeLoginButtonStatus() {
if (mobileFinish && codeFinish) {
if (mobileFinish && codeFinish && protocolAgree) {
setLoginButtonStatus(true)
} else {
setLoginButtonStatus(false)
......
......@@ -137,12 +137,10 @@
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center"
android:visibility="gone"
android:orientation="horizontal">
<CheckBox
android:id="@+id/cb_protocol"
android:checked="true"
style="@style/protocol_checkboxBg"
android:layout_width="25dp"
android:layout_height="23dp" />
......
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