kopia lustrzana https://github.com/ge0rg/aprsdroid
only register message broadcastreceiver once
rodzic
faa91619c7
commit
16d2c88783
|
@ -113,15 +113,14 @@ class AprsService extends Service with LocationListener {
|
|||
if (!running) {
|
||||
running = true
|
||||
startPoster()
|
||||
|
||||
// register for outgoing message notifications
|
||||
registerReceiver(msgNotifier, new IntentFilter(AprsService.MESSAGE))
|
||||
}
|
||||
|
||||
// continuous GPS tracking for single shot mode
|
||||
requestLocations(singleShot)
|
||||
|
||||
// register for outgoing message notifications
|
||||
registerReceiver(msgNotifier, new IntentFilter(AprsService.MESSAGE))
|
||||
|
||||
|
||||
val callssid = prefs.getCallSsid()
|
||||
val message = "%s: %d min, %d km".format(callssid, upd_int, upd_dist)
|
||||
ServiceNotifier.instance.start(this, message)
|
||||
|
|
Ładowanie…
Reference in New Issue