From bfd1ad288092a4b4a010ea230466f5e86a4e3de4 Mon Sep 17 00:00:00 2001 From: lmw <125975490@qq.com> Date: 星期二, 24 十二月 2024 10:09:43 +0800 Subject: [PATCH] fix bug --- app/src/main/java/com/sinata/xqmuse/ui/home/SearchResultActivity.kt | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/app/src/main/java/com/sinata/xqmuse/ui/home/SearchResultActivity.kt b/app/src/main/java/com/sinata/xqmuse/ui/home/SearchResultActivity.kt index 8538425..78aff94 100644 --- a/app/src/main/java/com/sinata/xqmuse/ui/home/SearchResultActivity.kt +++ b/app/src/main/java/com/sinata/xqmuse/ui/home/SearchResultActivity.kt @@ -31,6 +31,15 @@ refreshLayout.autoRefresh() } } + adapter.setOnItemClickListener { view, position -> + showDialog() + HttpManager.getMeditationDetails(list[position].id).request(this,success = { _, data-> + dismissDialog() + data?.goDetail(this) + }){_,_-> + dismissDialog() + } + } } override fun initView() { -- Gitblit v1.7.1