fix: Replace "Reset" with "Exit" in notification to reduce confusion
This commit is contained in:
@@ -34,7 +34,7 @@ fun NotificationCompat.Builder.addTimerActions(
|
||||
)
|
||||
.addAction(
|
||||
R.drawable.restart,
|
||||
"Reset",
|
||||
"Exit",
|
||||
PendingIntent.getService(
|
||||
context,
|
||||
0,
|
||||
|
||||
@@ -82,7 +82,6 @@ class TimerService : Service() {
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
timerRepository.serviceRunning = false
|
||||
runBlocking {
|
||||
job.cancel()
|
||||
@@ -90,6 +89,7 @@ class TimerService : Service() {
|
||||
notificationManager.cancel(1)
|
||||
alarm?.release()
|
||||
}
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
|
||||
Reference in New Issue
Block a user