Mute SocketException
This commit is contained in:
@@ -144,7 +144,7 @@ class SettingsPreferenceFragment : PreferenceFragmentCompat() {
|
|||||||
}
|
}
|
||||||
.map { it.name }.sorted().toList().toTypedArray()
|
.map { it.name }.sorted().toList().toTypedArray()
|
||||||
} catch (e: SocketException) {
|
} catch (e: SocketException) {
|
||||||
Timber.w(e)
|
Timber.d(e)
|
||||||
emptyArray<String>()
|
emptyArray<String>()
|
||||||
})
|
})
|
||||||
setTargetFragment(this@SettingsPreferenceFragment, 0)
|
setTargetFragment(this@SettingsPreferenceFragment, 0)
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class TetheringFragment : Fragment(), ServiceConnection {
|
|||||||
ifaceLookup = try {
|
ifaceLookup = try {
|
||||||
NetworkInterface.getNetworkInterfaces().asSequence().associateBy { it.name }
|
NetworkInterface.getNetworkInterfaces().asSequence().associateBy { it.name }
|
||||||
} catch (e: SocketException) {
|
} catch (e: SocketException) {
|
||||||
Timber.w(e)
|
Timber.d(e)
|
||||||
emptyMap()
|
emptyMap()
|
||||||
}
|
}
|
||||||
this@TetheringFragment.enabledTypes =
|
this@TetheringFragment.enabledTypes =
|
||||||
|
|||||||
Reference in New Issue
Block a user