Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Juan Aguilar
Nebulo
Commits
2b7ac69f
Commit
2b7ac69f
authored
Jan 02, 2021
by
Daniel Wolf
Browse files
Add click action to no connection notification
parent
c5830ea4
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/service/DnsVpnService.kt
View file @
2b7ac69f
...
...
@@ -461,6 +461,11 @@ class DnsVpnService : VpnService(), Runnable, CoroutineScope {
noConnectionNotificationBuilder
.
setSmallIcon
(
R
.
drawable
.
ic_cloud_strikethrough
)
noConnectionNotificationBuilder
.
setContentTitle
(
getString
(
R
.
string
.
notification_noconnection_title
))
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
(
NotificationCompat
.
BigTextStyle
().
bigText
(
getString
(
R
.
string
.
notification_noconnection_text
))
)
...
...
app/src/main/java/com/frostnerd/smokescreen/util/Notifications.kt
View file @
2b7ac69f
...
...
@@ -188,4 +188,5 @@ object RequestCodes {
const
val
RESTART_AFTER_REVOKE
=
11
const
val
RESTART_WHOLE_APP
=
12
const
val
REQUEST_CODE_IGNORE_BAD_CONNECTION
=
13
const
val
NO_CONNECTION_NOTIFICATION
=
14
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment