|
@@ -6,10 +6,7 @@ import android.text.TextUtils
|
|
|
import android.view.MotionEvent
|
|
|
import android.view.View
|
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
|
-import com.tencent.bugly.crashreport.CrashReport
|
|
|
-import com.tencent.imsdk.v2.V2TIMCallback
|
|
|
import com.tencent.imsdk.v2.V2TIMConversation
|
|
|
-import com.tencent.imsdk.v2.V2TIMManager
|
|
|
import com.tencent.qcloud.tuicore.TUIConstants
|
|
|
import com.tencent.qcloud.tuicore.TUICore
|
|
|
import com.tencent.qcloud.tuicore.TUILogin
|
|
@@ -143,7 +140,7 @@ class HealthConsultationActivity :
|
|
|
private fun getConsultationList() {
|
|
|
consultationBeans.clear()
|
|
|
viewModel.getConsultationList(fail = {
|
|
|
- it.show()
|
|
|
+ it.toast()
|
|
|
}, success = {
|
|
|
if (it.isNullOrEmpty().not()) {
|
|
|
if (it.isNullOrEmpty().not()) {
|
|
@@ -168,7 +165,7 @@ class HealthConsultationActivity :
|
|
|
doctorDao?.deleteAll()
|
|
|
}
|
|
|
viewModel.getRecommendDoctorList(fail = {
|
|
|
- it.show()
|
|
|
+ it.toast()
|
|
|
}, success = {
|
|
|
if (it.isNullOrEmpty().not()) {
|
|
|
doctorBeans.clear()
|
|
@@ -177,6 +174,7 @@ class HealthConsultationActivity :
|
|
|
doctorDao?.insertAll(doctorBeans)
|
|
|
}
|
|
|
}
|
|
|
+ recommendDoctorAdapter.showEmptyView = doctorBeans.isEmpty()
|
|
|
recommendDoctorAdapter.setData(doctorBeans)
|
|
|
})
|
|
|
}
|