Check if routings is empty after update

This commit is contained in:
Mygod
2018-09-06 15:48:46 +08:00
parent 823ae9633b
commit f72a3272cc

View File

@@ -92,6 +92,10 @@ class TetheringService : IpNeighbourMonitoringService(), UpstreamMonitor.Callbac
}
}
}
if (routings.isEmpty()) {
updateRoutingsLocked()
return
}
updateNotification()
}
app.handler.post { binder.fragment?.adapter?.notifyDataSetChanged() }