Fixed Sleep Timer crash

This commit is contained in:
Prathamesh More 2021-11-23 11:25:28 +05:30
parent c8afb60254
commit db6e6a2533

View file

@ -138,7 +138,7 @@ class SleepTimerDialog : DialogFragment() {
}
private fun makeTimerPendingIntent(flag: Int): PendingIntent? {
return PendingIntent.getService(requireActivity(), 0, makeTimerIntent(), flag)
return PendingIntent.getService(requireActivity(), 0, makeTimerIntent(), flag or PendingIntent.FLAG_IMMUTABLE)
}
private fun makeTimerIntent(): Intent {