Suppress errors
This commit is contained in:
@@ -106,7 +106,7 @@ class LocalOnlyHotspotService : IpNeighbourMonitoringService() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun startFailure(e: Exception?) {
|
private fun startFailure(e: Exception?) {
|
||||||
Crashlytics.logException(e)
|
if (e?.message != "Caller already has an active LocalOnlyHotspot request") Crashlytics.logException(e)
|
||||||
updateNotification()
|
updateNotification()
|
||||||
ServiceNotification.stopForeground(this@LocalOnlyHotspotService)
|
ServiceNotification.stopForeground(this@LocalOnlyHotspotService)
|
||||||
stopSelf()
|
stopSelf()
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ class P2pSupplicantConfiguration {
|
|||||||
val result = match.groupValues[2] + match.groupValues[3] // only one will match and hold non-empty value
|
val result = match.groupValues[2] + match.groupValues[3] // only one will match and hold non-empty value
|
||||||
check(result.length in 8..63)
|
check(result.length in 8..63)
|
||||||
result
|
result
|
||||||
|
} catch (e: NoSuchElementException) {
|
||||||
|
Toast.makeText(app, e.message, Toast.LENGTH_LONG).show()
|
||||||
|
null
|
||||||
} catch (e: RuntimeException) {
|
} catch (e: RuntimeException) {
|
||||||
Crashlytics.log(Log.WARN, TAG, content)
|
Crashlytics.log(Log.WARN, TAG, content)
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
|
|||||||
Reference in New Issue
Block a user