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
ad7b2c26
Commit
ad7b2c26
authored
Aug 12, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:权限修改
parent
294761cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
ExpertSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
+16
-3
No files found.
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
View file @
ad7b2c26
...
@@ -1039,16 +1039,29 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
...
@@ -1039,16 +1039,29 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
)
{
)
{
//同意定位授权
//同意定位授权
showAreaPopupWindow
(
true
)
showAreaPopupWindow
(
true
)
}
else
if
(
MMKV
.
defaultMMKV
()
.
decodeBool
(
ConsultBIConstants
.
ConsultantLocationAuth
.
REFUSE_ALREADY
)
)
{
showAreaPopupWindow
(
false
)
}
else
{
}
else
{
val
dialog
=
CommonDialog
(
mContext
)
val
dialog
=
CommonDialog
(
mContext
)
.
setTitle
(
"温馨提示"
)
.
setTitle
(
"温馨提示"
)
.
setMessage
(
"建议您授权定位权限,就能轻松获取周边优秀咨询师和其他服务"
)
.
setMessage
(
"建议您授权定位权限,就能轻松获取周边优秀咨询师和其他服务"
)
.
setLeftOnclick
(
"暂不"
)
{
v1
->
.
setLeftOnclick
(
"暂不"
)
{
v1
->
//埋点
ActionCountUtils
.
count
(
ActionCountUtils
.
count
(
POPUP_ICON_CLICK
,
"暂不"
)
POPUP_ICON_CLICK
,
"暂不"
)
MMKV
.
defaultMMKV
().
encode
(
ConsultBIConstants
.
ConsultantLocationAuth
.
REFUSE_ALREADY
,
true
)
showAreaPopupWindow
(
false
)
showAreaPopupWindow
(
false
)
}.
setRightClick
(
"授权"
)
{
v12
->
}.
setRightClick
(
"授权"
)
{
v12
->
ActionCountUtils
.
count
(
POPUP_ICON_CLICK
,
"授权"
)
ActionCountUtils
.
count
(
POPUP_ICON_CLICK
,
"授权"
)
MMKV
.
defaultMMKV
().
encode
(
MMKV
.
defaultMMKV
().
encode
(
ConsultBIConstants
.
ConsultantLocationAuth
.
WHETHER_LOCATION_AUTH
,
ConsultBIConstants
.
ConsultantLocationAuth
.
WHETHER_LOCATION_AUTH
,
true
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