Commit 2b7ac69f authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Add click action to no connection notification

parent c5830ea4
...@@ -461,6 +461,11 @@ class DnsVpnService : VpnService(), Runnable, CoroutineScope { ...@@ -461,6 +461,11 @@ class DnsVpnService : VpnService(), Runnable, CoroutineScope {
noConnectionNotificationBuilder.setSmallIcon(R.drawable.ic_cloud_strikethrough) noConnectionNotificationBuilder.setSmallIcon(R.drawable.ic_cloud_strikethrough)
noConnectionNotificationBuilder.setContentTitle(getString(R.string.notification_noconnection_title)) noConnectionNotificationBuilder.setContentTitle(getString(R.string.notification_noconnection_title))
noConnectionNotificationBuilder.setContentText(getString(R.string.notification_noconnection_text)) noConnectionNotificationBuilder.setContentText(getString(R.string.notification_noconnection_text))
noConnectionNotificationBuilder.setContentIntent(PendingIntent.getActivity(
this, RequestCodes.NO_CONNECTION_NOTIFICATION,
PinActivity.openAppIntent(this), PendingIntent.FLAG_UPDATE_CURRENT
)
)
noConnectionNotificationBuilder.setStyle( noConnectionNotificationBuilder.setStyle(
NotificationCompat.BigTextStyle().bigText(getString(R.string.notification_noconnection_text)) NotificationCompat.BigTextStyle().bigText(getString(R.string.notification_noconnection_text))
) )
......
...@@ -188,4 +188,5 @@ object RequestCodes { ...@@ -188,4 +188,5 @@ object RequestCodes {
const val RESTART_AFTER_REVOKE = 11 const val RESTART_AFTER_REVOKE = 11
const val RESTART_WHOLE_APP = 12 const val RESTART_WHOLE_APP = 12
const val REQUEST_CODE_IGNORE_BAD_CONNECTION = 13 const val REQUEST_CODE_IGNORE_BAD_CONNECTION = 13
const val NO_CONNECTION_NOTIFICATION = 14
} }
\ No newline at end of file
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