File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
android/src/main/kotlin/com/icapps/background_location_tracker/service Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -134,16 +134,15 @@ internal class LocationUpdatesService : Service() {
134
134
// service. If this method is called due to a configuration change in MainActivity, we
135
135
// do nothing. Otherwise, we make this service a foreground service.
136
136
137
- try {
137
+ try {
138
138
if (! changingConfiguration && SharedPrefsUtil .isTracking(this )) {
139
139
Logger .debug(TAG , " Starting foreground service" )
140
140
if (wakeLock?.isHeld != true ) {
141
141
wakeLock?.acquire(timeOut)
142
142
}
143
143
NotificationUtil .startForeground(this , location)
144
144
}
145
- }
146
- catch (e: Throwable ) {
145
+ } catch (e: Throwable ) {
147
146
Logger .error(e.message ? : " " ," onUnbind failed to execute" );
148
147
}
149
148
You can’t perform that action at this time.
0 commit comments