From e28998da220ef0a0ba5194e00f0b417be5c12f13 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 10 Sep 2021 19:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/about/AppLogDialog.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/about/AppLogDialog.kt b/app/src/main/java/io/legado/app/ui/about/AppLogDialog.kt index 56d343da2..3a332b49f 100644 --- a/app/src/main/java/io/legado/app/ui/about/AppLogDialog.kt +++ b/app/src/main/java/io/legado/app/ui/about/AppLogDialog.kt @@ -81,8 +81,10 @@ class AppLogDialog : BaseDialogFragment() { override fun registerListener(holder: ItemViewHolder, binding: ItemAppLogBinding) { binding.root.onClick { - getItem(holder.layoutPosition)?.let { - TextDialog.show(childFragmentManager, it.third?.stackTraceToString()) + getItem(holder.layoutPosition)?.let { item -> + item.third?.let { + TextDialog.show(childFragmentManager, it.stackTraceToString()) + } } } }