notify uaAdapter also when baresip is not visible

This commit is contained in:
Juha Heinanen
2018-08-02 15:30:33 +03:00
parent cabb0d43e8
commit 60b42d4cea
@@ -258,17 +258,14 @@ class BaresipService: Service() {
else else
MainActivity.images[account_index] = R.drawable.dot_green MainActivity.images[account_index] = R.drawable.dot_green
updateStatusNotification() updateStatusNotification()
if (!Utils.isVisible()) return
} }
"registering failed" -> { "registering failed" -> {
MainActivity.images[account_index] = R.drawable.dot_red MainActivity.images[account_index] = R.drawable.dot_red
updateStatusNotification() updateStatusNotification()
if (!Utils.isVisible()) return
} }
"unregistering" -> { "unregistering" -> {
MainActivity.images[account_index] = R.drawable.dot_yellow MainActivity.images[account_index] = R.drawable.dot_yellow
updateStatusNotification() updateStatusNotification()
if (!Utils.isVisible()) return
} }
"call ringing" -> { "call ringing" -> {
return return