Skip to content

Commit

Permalink
fix: Notification Permission Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaIsrar12 committed Jul 13, 2024
1 parent 53364f2 commit 2fe8313
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ class CourseContainerFragment : Fragment(R.layout.fragment_course_container) {
requireActivity().supportFragmentManager,
viewModel.courseName
)
} else if (viewModel.calendarSyncUIState.value.isCalendarSyncEnabled) {
setUpCourseCalendar()
} else {
if (viewModel.calendarSyncUIState.value.isCalendarSyncEnabled) {
setUpCourseCalendar()
}

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
pushNotificationPermissionLauncher.launch(
android.Manifest.permission.POST_NOTIFICATIONS
Expand Down

0 comments on commit 2fe8313

Please sign in to comment.