Skip to content

Commit ae65c37

Browse files
committed
Mark individual notifications as ongoing to block swiping them away too
1 parent d52a828 commit ae65c37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/tech/httptoolkit/android/ProxyVpnService.kt

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ class ProxyVpnService : VpnService(), IProtectSocket {
141141
.setContentText(getString(R.string.vpn_active_notification_content))
142142
.setSmallIcon(R.drawable.ic_transparent_icon)
143143
.setLargeIcon(BitmapFactory.decodeResource(resources, R.drawable.ic_transparent_icon))
144+
.setOngoing(true) // Mark as not dismissable
144145
.addAction(0, getString(R.string.vpn_active_notification_action), pendingServiceIntent)
145146
.build()
146147

0 commit comments

Comments
 (0)