Commit 011b89c9 by YKai

feat:vivo渠道增加用户协议勾选由后台控制

parent e24b4567
......@@ -372,9 +372,10 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
}
var isAgreeProtocol =false
//华为渠道不默认勾选隐私协议,必须全局上下文才可以获取到渠道号。其他渠道默认勾选隐私协议
//protocol_android 1是开启华为渠道默认勾选,2是关闭华为渠道默认勾选,方便应用市场审核
//protocol_android 1是开启华为、vivo渠道默认勾选,2是关闭华为、vivo渠道默认勾选,方便应用市场审核
val huaweiType=PlatformRamImpl.getInstance().getGlobalInfo()?.info?.protocol_android?:2
if (WalleChannelReader.getChannel(applicationContext)=="huawei"&& huaweiType==2){
val channel= WalleChannelReader.getChannel(applicationContext)
if (huaweiType==2&&(channel=="huawei"||channel=="vivo")){
iv_select_protocol.setImageResource(R.drawable.user_login_protocol_unselected)
}else{
isAgreeProtocol=true
......
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