add disable openvpnconnection, refactoring
This commit is contained in:
parent
6c2e6ead2b
commit
28ae7eeaee
8 changed files with 500 additions and 482 deletions
|
|
@ -16,8 +16,8 @@ class VPNPermissionHelper : android.net.VpnService() {
|
|||
* is present and prompting if not.
|
||||
*/
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
Log.i(tag, "onStartCommand")
|
||||
val intent = prepare(this.applicationContext)
|
||||
Log.i(tag, "VPNPermissionHelper onStartCommand")
|
||||
if (intent != null) {
|
||||
startActivityForResult(intent)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue