From db6e6a253322074f2ce9d046266280bbe4dfabde Mon Sep 17 00:00:00 2001 From: Prathamesh More Date: Tue, 23 Nov 2021 11:25:28 +0530 Subject: [PATCH] Fixed Sleep Timer crash --- .../code/name/monkey/retromusic/dialogs/SleepTimerDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/dialogs/SleepTimerDialog.kt b/app/src/main/java/code/name/monkey/retromusic/dialogs/SleepTimerDialog.kt index e454d4a6..214bef24 100755 --- a/app/src/main/java/code/name/monkey/retromusic/dialogs/SleepTimerDialog.kt +++ b/app/src/main/java/code/name/monkey/retromusic/dialogs/SleepTimerDialog.kt @@ -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 {