Skip to content

Commit

Permalink
Fix notification channel sometimes not showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
profiluefter committed May 24, 2021
1 parent ad630e8 commit 16cdf34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ class MainActivity : AppCompatActivity() {
}

private suspend fun showStartupNotification() {
if (!sharedPreferences.getBoolean("startup_notification", true)) return

createNotificationChannel()

if (!sharedPreferences.getBoolean("startup_notification", true)) return

val dueToday: List<Note> = viewModel.getNotesDueToday()
showParentNotification()
showNoteNotifications(dueToday)
Expand Down

0 comments on commit 16cdf34

Please sign in to comment.