Fixed notification time
This commit is contained in:
parent
4b7ba99da9
commit
a22c0454e4
@ -96,10 +96,11 @@ public class DaedalusVpnService extends VpnService implements Runnable {
|
|||||||
|
|
||||||
Intent nIntent = new Intent(this, MainActivity.class);
|
Intent nIntent = new Intent(this, MainActivity.class);
|
||||||
PendingIntent pIntent = PendingIntent.getActivity(this, 0, nIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
PendingIntent pIntent = PendingIntent.getActivity(this, 0, nIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||||
builder.setContentTitle(getResources().getString(R.string.notification_activated))
|
builder.setWhen(0)
|
||||||
|
.setContentTitle(getResources().getString(R.string.notification_activated))
|
||||||
.setDefaults(NotificationCompat.DEFAULT_LIGHTS)
|
.setDefaults(NotificationCompat.DEFAULT_LIGHTS)
|
||||||
.setSmallIcon(R.mipmap.ic_security_black_18dp)
|
.setSmallIcon(R.mipmap.ic_security_black_18dp)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(false)
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
.setTicker(getResources().getString(R.string.notification_activated))
|
.setTicker(getResources().getString(R.string.notification_activated))
|
||||||
.setContentIntent(pIntent)
|
.setContentIntent(pIntent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user