Skip to content

Commit e0bc52b

Browse files
committed
fixed formatting
1 parent 4e12feb commit e0bc52b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

android/src/main/kotlin/com/icapps/background_location_tracker/service/LocationUpdatesService.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,15 @@ internal class LocationUpdatesService : Service() {
134134
// service. If this method is called due to a configuration change in MainActivity, we
135135
// do nothing. Otherwise, we make this service a foreground service.
136136

137-
try{
137+
try {
138138
if (!changingConfiguration && SharedPrefsUtil.isTracking(this)) {
139139
Logger.debug(TAG, "Starting foreground service")
140140
if (wakeLock?.isHeld != true) {
141141
wakeLock?.acquire(timeOut)
142142
}
143143
NotificationUtil.startForeground(this, location)
144144
}
145-
}
146-
catch(e:Throwable) {
145+
} catch(e:Throwable) {
147146
Logger.error(e.message ?: "","onUnbind failed to execute");
148147
}
149148

0 commit comments

Comments
 (0)