Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
011b89c9
Commit
011b89c9
authored
Oct 17, 2020
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:vivo渠道增加用户协议勾选由后台控制
parent
e24b4567
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+3
-2
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
011b89c9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment