Commit ad7b2c26 by 霍志良

feat:权限修改

parent 294761cf
...@@ -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
......
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