Refine code style
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package be.mygod.vpnhotspot.net
|
||||
|
||||
import android.content.Context
|
||||
import android.net.ConnectivityManager
|
||||
import android.net.Network
|
||||
import android.net.NetworkCapabilities
|
||||
|
||||
@@ -22,7 +22,7 @@ class P2pSupplicantConfiguration {
|
||||
fun readPsk(): String? {
|
||||
return try {
|
||||
pskParser.findAll(content ?: return null).single().groupValues[1]
|
||||
} catch (e: Exception) {
|
||||
} catch (e: RuntimeException) {
|
||||
Log.w(TAG, content)
|
||||
e.printStackTrace()
|
||||
Toast.makeText(app, e.message, Toast.LENGTH_LONG).show()
|
||||
|
||||
Reference in New Issue
Block a user