We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 343c9ab commit a4fe2beCopy full SHA for a4fe2be
app-timer-run/src/main/java/xyz/aprildown/timer/app/timer/run/MachineService.kt
@@ -168,8 +168,14 @@ class MachineService :
168
* Just release all resources
169
*/
170
override fun onDestroy() {
171
- super.onDestroy()
+ binder = null
172
presenter.dropView()
173
+ phoneCallReceiver?.unregister()
174
+ phoneCallReceiver = null
175
+ toForegroundHandler.removeCallbacksAndMessages(null)
176
+ foregroundNotifHandler?.removeCallbacksAndMessages(null)
177
+ foregroundNotifHandler = null
178
+ super.onDestroy()
179
}
180
181
//
0 commit comments