Stop alarm when pressing stop on notification
This commit is contained in:
parent
c965064e57
commit
0cb8d7b962
|
@ -8,6 +8,7 @@ import android.util.Log
|
||||||
class StopTimer : Service() {
|
class StopTimer : Service() {
|
||||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||||
applicationContext.stopService(Intent(applicationContext, TimerService::class.java))
|
applicationContext.stopService(Intent(applicationContext, TimerService::class.java))
|
||||||
|
applicationContext.stopService(Intent(applicationContext, AlarmService::class.java))
|
||||||
return super.onStartCommand(intent, flags, startId)
|
return super.onStartCommand(intent, flags, startId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user