Commit b604bfe1 by 徐健

释放咨询师弹框资源

parent f00da74a
...@@ -127,7 +127,7 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -127,7 +127,7 @@ class ConsultAssistantDialogUtils private constructor() {
object : ConsultAssistantDialog.OnConsultAssistantClickListener { object : ConsultAssistantDialog.OnConsultAssistantClickListener {
override fun onClickAction() { override fun onClickAction() {
// 咨询师列表页面且未登录情况下,跳转登录页面 // 咨询师列表页面且未登录情况下,跳转登录页面
if (expertSearchPageHasShown && !ConsultantIn.isLogin()) { if (!ConsultantIn.isLogin()) {
ConsultantIn.toLogin(activity) ConsultantIn.toLogin(activity)
} else { } else {
//获取用户uid //获取用户uid
...@@ -151,10 +151,12 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -151,10 +151,12 @@ class ConsultAssistantDialogUtils private constructor() {
* 咨询师列表页面使用的重置本单例关于专家咨询列表页面得状态 * 咨询师列表页面使用的重置本单例关于专家咨询列表页面得状态
*/ */
fun resetStatus() { fun resetStatus() {
consultAssistantDialogFromHomePage?.dismiss()
consultAssistantDialog?.dismiss() consultAssistantDialog?.dismiss()
timer?.cancel() timer?.cancel()
timer = null timer = null
expertSearchPageHasShown = false expertSearchPageHasShown = false
consultAssistantDialogFromHomePage = null
consultAssistantDialog = null consultAssistantDialog = null
} }
......
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