Commit e05d033a authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Don't forward to the pin activity without passing a type

parent 5dad3f4a
...@@ -55,7 +55,7 @@ class SmokeScreen : Application() { ...@@ -55,7 +55,7 @@ class SmokeScreen : Application() {
.setContentIntent( .setContentIntent(
PendingIntent.getActivity( PendingIntent.getActivity(
this, 1, this, 1,
Intent(this, PinActivity::class.java), PendingIntent.FLAG_UPDATE_CURRENT PinActivity.openAppIntent(this), PendingIntent.FLAG_UPDATE_CURRENT
) )
) )
.setContentTitle(getString(R.string.notification_appcrash_title)) .setContentTitle(getString(R.string.notification_appcrash_title))
......
...@@ -170,7 +170,7 @@ class BackgroundVpnConfigureActivity : BaseActivity() { ...@@ -170,7 +170,7 @@ class BackgroundVpnConfigureActivity : BaseActivity() {
androidx.appcompat.app.AlertDialog.Builder(this, getPreferences().theme.dialogStyle) androidx.appcompat.app.AlertDialog.Builder(this, getPreferences().theme.dialogStyle)
.setTitle(getString(R.string.app_name) + " - " + getString(R.string.information)) .setTitle(getString(R.string.app_name) + " - " + getString(R.string.information))
.setPositiveButton(R.string.open_app) { _, _ -> .setPositiveButton(R.string.open_app) { _, _ ->
val intent = Intent(this@BackgroundVpnConfigureActivity, PinActivity::class.java) val intent = PinActivity.openAppIntent(this)
startActivity(intent) startActivity(intent)
finish() finish()
} }
......
...@@ -368,7 +368,7 @@ class DnsVpnService : VpnService(), Runnable { ...@@ -368,7 +368,7 @@ class DnsVpnService : VpnService(), Runnable {
notificationBuilder.setContentIntent( notificationBuilder.setContentIntent(
PendingIntent.getActivity( PendingIntent.getActivity(
this, 1, this, 1,
Intent(this, PinActivity::class.java), PendingIntent.FLAG_UPDATE_CURRENT PinActivity.openAppIntent(this), PendingIntent.FLAG_UPDATE_CURRENT
) )
) )
if (getPreferences().allowStopInNotification) { if (getPreferences().allowStopInNotification) {
...@@ -756,7 +756,7 @@ class DnsVpnService : VpnService(), Runnable { ...@@ -756,7 +756,7 @@ class DnsVpnService : VpnService(), Runnable {
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
builder.setMetered(false) builder.setMetered(false)
} }
builder.setConfigureIntent(PendingIntent.getActivity(this, 1, Intent(this, PinActivity::class.java), PendingIntent.FLAG_CANCEL_CURRENT)) builder.setConfigureIntent(PendingIntent.getActivity(this, 1, PinActivity.openAppIntent(this), PendingIntent.FLAG_CANCEL_CURRENT))
val deviceHasIpv6 = hasDeviceIpv6Address() val deviceHasIpv6 = hasDeviceIpv6Address()
val deviceHasIpv4 = hasDeviceIpv4Address() 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