From 3c42f56bc6f957f7a6da6e76095c0097ca5767f2 Mon Sep 17 00:00:00 2001 From: Thirfir Date: Mon, 30 Sep 2024 22:47:16 +0900 Subject: [PATCH] Fix permission check --- .../in/koreatech/koin/ui/article/ArticleKeywordFragment.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/koin/src/main/java/in/koreatech/koin/ui/article/ArticleKeywordFragment.kt b/koin/src/main/java/in/koreatech/koin/ui/article/ArticleKeywordFragment.kt index ef5f88cd1..8e361c639 100644 --- a/koin/src/main/java/in/koreatech/koin/ui/article/ArticleKeywordFragment.kt +++ b/koin/src/main/java/in/koreatech/koin/ui/article/ArticleKeywordFragment.kt @@ -306,13 +306,11 @@ class ArticleKeywordFragment : Fragment() { private fun initKeywordNotification() { notificationViewModel.getPermissionInfo() - if (requireContext().checkNotificationPermission().not()) { - binding.notificationKeyword.disableAll() - } binding.notificationKeyword.setOnSwitchClickListener { isChecked -> if (requireContext().checkNotificationPermission().not()) { ToastUtil.getInstance().makeShort(R.string.request_notification_permission) + binding.notificationKeyword.isChecked = false return@setOnSwitchClickListener }