Commit 60906d1c by 严久程

华为隐私政策

parent 3f32dc77
ext {
kotlin_version = "1.3.21"
dev_mode = false
dev_mode = true
ydlPublishVersion = [
// -------------- 业务模块 --------------
......
......@@ -81,7 +81,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
private var countryCode: String? = "0086"//国家或地区手机区号
private var handler: Handler? = null
private var isFromGuide = false//是否来自启动页
private var isAgreeProtocol =true
private var isAgreeProtocol =false
companion object {
private var BIND_PHONE = "bind_phone"//用于判断时候是绑定手机号
private var IS_FROM_GUIDE = "isFromGuide"//是否来自启动页
......@@ -368,12 +368,14 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
RxKeyboardTool.hideSoftInput(this)
onBackPressed()
}
iv_select_protocol.setOnClickListener {
isAgreeProtocol=!isAgreeProtocol
if(isAgreeProtocol){
iv_select_protocol.setImageResource(R.drawable.user_login_protocol_selected)
}else{
iv_select_protocol.setImageResource(R.drawable.user_login_protocol_unselected)
view_click.setOnClickListener {
if(iv_select_protocol.visibility==View.VISIBLE){
isAgreeProtocol=!isAgreeProtocol
if(isAgreeProtocol){
iv_select_protocol.setImageResource(R.drawable.user_login_protocol_selected)
}else{
iv_select_protocol.setImageResource(R.drawable.user_login_protocol_unselected)
}
}
}
//微信登录
......@@ -397,7 +399,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
}
//下一步
iv_next.setOnClickListener {
if(!isAgreeProtocol){
if(iv_select_protocol.visibility==View.VISIBLE&&!isAgreeProtocol){
ToastUtil.toastShort("请您先同意壹点灵《用户使用协议》、《隐私保护政策》,才能登录使用")
return@setOnClickListener
}
......
......@@ -47,6 +47,12 @@
android:textSize="28dp"
android:textStyle="bold" />
<View
android:id="@+id/view_click"
android:layout_width="30dp"
android:layout_below="@+id/tv_reg_title"
android:layout_marginLeft="20dp"
android:layout_height="30dp"/>
<ImageView
android:id="@+id/iv_select_protocol"
......@@ -56,7 +62,7 @@
android:layout_marginTop="6.5dp"
android:layout_alignBottom="@+id/tv_des"
android:layout_marginLeft="28dp"
android:src="@drawable/user_login_protocol_selected"
android:src="@drawable/user_login_protocol_unselected"
/>
<TextView
......@@ -66,7 +72,7 @@
android:layout_below="@+id/tv_reg_title"
android:layout_toRightOf="@+id/iv_select_protocol"
android:layout_marginTop="6.5dp"
android:layout_marginStart="8dp"
android:layout_marginStart="10dp"
android:fontFamily="sans-serif-light"
android:text="同意"
android:textColor="#fdfdfe"
......
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