Catch SecurityException in LOHService

This commit is contained in:
Mygod
2018-06-10 21:12:35 +08:00
parent e2cbe18ea9
commit 3c89c75b3b

View File

@@ -93,6 +93,10 @@ class LocalOnlyHotspotService : IpNeighbourMonitoringService() {
} catch (e: IllegalStateException) {
e.printStackTrace()
Crashlytics.logException(e)
} catch (e: SecurityException) {
Toast.makeText(this, e.message, Toast.LENGTH_LONG).show()
e.printStackTrace()
Crashlytics.logException(e)
}
return START_STICKY
}