diff --git a/WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsListFragment.kt b/WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsListFragment.kt index 8b7533bc9396..15a310182506 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsListFragment.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsListFragment.kt @@ -217,15 +217,14 @@ class NotificationsListFragment : Fragment(R.layout.notifications_list_fragment) viewModel.resetNotificationsPermissionWarningDismissState() } - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU || - hasPermission || + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU || hasPermission || viewModel.isNotificationsPermissionsWarningDismissed ) { // If the user dismissed the warning, don't show it again. notificationPermissionWarning.isVisible = false } else { notificationPermissionWarning.isVisible = true - permissionFixButton.setOnClickListener { + notificationPermissionWarning.setOnClickListener { val isAlwaysDenied = WPPermissionUtils.isPermissionAlwaysDenied( requireActivity(), Manifest.permission.POST_NOTIFICATIONS diff --git a/WordPress/src/main/res/layout/notifications_list_fragment.xml b/WordPress/src/main/res/layout/notifications_list_fragment.xml index 4e5c3fafcade..33205b7b7c42 100644 --- a/WordPress/src/main/res/layout/notifications_list_fragment.xml +++ b/WordPress/src/main/res/layout/notifications_list_fragment.xml @@ -57,10 +57,8 @@ android:textColor="?attr/colorOnSurface" />