Fixed a crash when tracking was resumed from quick settings tile
This commit is contained in:
parent
a48cd2d009
commit
e44f404685
1 changed files with 1 additions and 2 deletions
|
@ -74,7 +74,7 @@ class TrackingToggleTileService(): TileService() {
|
||||||
else -> {
|
else -> {
|
||||||
// start service via intent so that it keeps running after unbind
|
// start service via intent so that it keeps running after unbind
|
||||||
startTrackerService()
|
startTrackerService()
|
||||||
trackerService.startTracking(newTrack = false)
|
trackerService.startTracking()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,6 @@ class TrackingToggleTileService(): TileService() {
|
||||||
/* Overrides onDestroy from Service */
|
/* Overrides onDestroy from Service */
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
if (bound) unbindService(connection)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue