icons update
This commit is contained in:
@@ -153,13 +153,23 @@ class TunVpnService : VpnService() {
|
||||
Notification.Builder(this)
|
||||
}
|
||||
|
||||
val vpnBlack = 0xFF121212.toInt()
|
||||
|
||||
val notification = builder
|
||||
.setContentTitle("Netrunner VPN")
|
||||
.setContentText("Защита активна")
|
||||
.setSmallIcon(android.R.drawable.ic_dialog_info)
|
||||
|
||||
.setSmallIcon(android.R.drawable.ic_lock_lock)
|
||||
.setContentIntent(contentPI)
|
||||
.setOngoing(true)
|
||||
.addAction(stopAction) // Используем новый объект Action
|
||||
.addAction(stopAction)
|
||||
|
||||
|
||||
.setColor(vpnBlack)
|
||||
.setColorized(true)
|
||||
|
||||
.setVisibility(Notification.VISIBILITY_PUBLIC)
|
||||
.setCategory(Notification.CATEGORY_SERVICE)
|
||||
.build()
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||
|
||||
Reference in New Issue
Block a user