Fixed Sleep Timer crash
This commit is contained in:
parent
c8afb60254
commit
db6e6a2533
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class SleepTimerDialog : DialogFragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun makeTimerPendingIntent(flag: Int): PendingIntent? {
|
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 {
|
private fun makeTimerIntent(): Intent {
|
||||||
|
|
Loading…
Reference in a new issue