Renames UpdateNotification to Update Notification

This commit is contained in:
Juha Heinanen
2023-03-25 13:22:18 +02:00
parent 01ac8f06d3
commit a4034fca61
2 changed files with 6 additions and 2 deletions
@@ -516,7 +516,7 @@ class BaresipService: Service() {
nm.cancel(MESSAGE_NOTIFICATION_ID) nm.cancel(MESSAGE_NOTIFICATION_ID)
} }
"UpdateNotification" -> { "Update Notification" -> {
updateStatusNotification() updateStatusNotification()
} }
@@ -528,6 +528,10 @@ class BaresipService: Service() {
} }
} }
else -> {
Log.e(TAG, "Unknown start action $action")
}
} }
return START_STICKY return START_STICKY
@@ -239,7 +239,7 @@ class MainActivity : AppCompatActivity() {
if (aorSpinner.tag != "") if (aorSpinner.tag != "")
updateIcons(Account.ofAor(aorSpinner.tag.toString())!!) updateIcons(Account.ofAor(aorSpinner.tag.toString())!!)
if (BaresipService.isServiceRunning) { if (BaresipService.isServiceRunning) {
baresipService.action = "UpdateNotification" baresipService.action = "Update Notification"
startService(baresipService) startService(baresipService)
} }
} }