Improved notification color

This commit is contained in:
PeratX 2017-05-02 21:40:14 +08:00
parent 5947152550
commit 4a9affef54

View File

@ -102,6 +102,7 @@ public class DaedalusVpnService extends VpnService implements Runnable {
.setContentTitle(getResources().getString(R.string.notification_activated))
.setDefaults(NotificationCompat.DEFAULT_LIGHTS)
.setSmallIcon(R.drawable.ic_security)
.setColor(getResources().getColor(R.color.colorPrimary)) //backward compatibility
.setAutoCancel(false)
.setOngoing(true)
.setTicker(getResources().getString(R.string.notification_activated))