fix: Replace "Reset" with "Exit" in notification to reduce confusion

This commit is contained in:
Nishant Mishra
2025-09-27 18:11:16 +05:30
parent a44f243ae1
commit ceb630d957
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ fun NotificationCompat.Builder.addTimerActions(
)
.addAction(
R.drawable.restart,
"Reset",
"Exit",
PendingIntent.getService(
context,
0,

View File

@@ -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 {