From a2f69a08fff65e4e8c33c7bbb0392cf9dc12a0bf Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Tue, 10 May 2022 09:34:34 +0800 Subject: [PATCH] fix: ui bug --- .../io/legado/app/ui/association/FileAssociationActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt index 11bedf6bb..3c9edac98 100644 --- a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt +++ b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt @@ -89,6 +89,7 @@ class FileAssociationActivity : finish() } viewModel.notSupportedLiveData.observe(this) { data -> + binding.rotateLoading.hide() alert( title = appCtx.getString(R.string.draw), message = appCtx.getString(R.string.file_not_supported, data.second) @@ -96,7 +97,9 @@ class FileAssociationActivity : okButton { importBook(data.first) } - cancelButton() + cancelButton { + finish() + } } } intent.data?.let { data ->