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
62967ba1
Commit
62967ba1
authored
Jan 12, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:代码优化
parent
87a5827d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+6
-2
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
62967ba1
...
...
@@ -56,6 +56,7 @@ object OneKeyLoginHelp {
var
mIsOpenOneKeyLogin
=
true
// 是否开启一键登录
var
mAuthType
=
PhoneNumberAuthHelper
.
SERVICE_TYPE_LOGIN
// 1:本机号码校验 2: ⼀键登录
private
var
checkBoxHidden
=
true
// 协议勾选框是否展示
var
mPrivacyBeforeText
=
"登录即代表您同意"
// 隐私协议文案
private
lateinit
var
mActivity
:
BaseActivity
...
...
@@ -85,6 +86,9 @@ object OneKeyLoginHelp {
val
channel
=
WalleChannelReader
.
getChannel
(
activity
)
checkBoxHidden
=
!(
channel
==
"huawei"
||
channel
==
"vivo"
)
LogUtil
.
e
(
"checkBoxHidde:$checkBoxHidden"
)
if
(!
checkBoxHidden
){
mPrivacyBeforeText
=
"同意"
}
}
/**
...
...
@@ -266,7 +270,7 @@ object OneKeyLoginHelp {
.
setAppPrivacyTwo
(
"隐私协议"
,
appPrivacyTwo
)
.
setAppPrivacyColor
(
Color
.
parseColor
(
"#999999"
),
Color
.
parseColor
(
"#1da1f2"
))
.
setCheckboxHidden
(
checkBoxHidden
)
// 设置是否同意协议的checkbox隐藏
.
setPrivacyBefore
(
"登录即代表您同意"
)
.
setPrivacyBefore
(
mPrivacyBeforeText
)
.
setScreenOrientation
(
ActivityInfo
.
SCREEN_ORIENTATION_SENSOR_PORTRAIT
)
// 设置竖屏
.
setAuthPageActIn
(
"in_activity"
,
"out_activity"
)
.
setAuthPageActOut
(
"in_activity"
,
"out_activity"
)
...
...
@@ -317,7 +321,7 @@ object OneKeyLoginHelp {
.
setAppPrivacyTwo
(
"隐私协议"
,
"https://m.ydl.com/Protol/yinsi"
)
.
setAppPrivacyColor
(
Color
.
parseColor
(
"#999999"
),
Color
.
parseColor
(
"#1da1f2"
))
.
setCheckboxHidden
(
checkBoxHidden
)
// 设置是否同意协议的checkbox隐藏
.
setPrivacyBefore
(
"登录即代表您同意"
)
.
setPrivacyBefore
(
mPrivacyBeforeText
)
.
setDialogHeight
(
dialogHeight
)
.
setDialogBottom
(
true
)
.
setScreenOrientation
(
ActivityInfo
.
SCREEN_ORIENTATION_SENSOR_PORTRAIT
)
// 设置竖屏
...
...
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