Skip to content

Commit

Permalink
Remove notification
Browse files Browse the repository at this point in the history
  • Loading branch information
mike committed Oct 29, 2019
1 parent 1417f4f commit 22d08f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class LocationUpdatesService : Service() {
mNotificationManager!!.createNotificationChannel(mChannel)
}

startForeground(NOTIFICATION_ID, notification)
//startForeground(NOTIFICATION_ID, notification)


broadcastReceiver = object : BroadcastReceiver() {
Expand Down Expand Up @@ -138,7 +138,7 @@ class LocationUpdatesService : Service() {
Utils.setRequestingLocationUpdates(this, false)
mNotificationManager!!.cancel(NOTIFICATION_ID)
stopSelf()
stopForeground(true)
//stopForeground(true)
} catch (unlikely: SecurityException) {
Utils.setRequestingLocationUpdates(this, true)
}
Expand Down

0 comments on commit 22d08f5

Please sign in to comment.