Commit 73a6eb77 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Set the configure intent to the pin activity, otherwise the app will be opened...

Set the configure intent to the pin activity, otherwise the app will be opened without asking for PIN
parent e1434d48
......@@ -756,7 +756,7 @@ class DnsVpnService : VpnService(), Runnable {
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
builder.setMetered(false)
}
builder.setConfigureIntent(PendingIntent.getActivity(this, 1, Intent(this, MainActivity::class.java), PendingIntent.FLAG_CANCEL_CURRENT))
builder.setConfigureIntent(PendingIntent.getActivity(this, 1, Intent(this, PinActivity::class.java), PendingIntent.FLAG_CANCEL_CURRENT))
val deviceHasIpv6 = hasDeviceIpv6Address()
val deviceHasIpv4 = hasDeviceIpv4Address()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment