Fixed probable nullpointerexception
This commit is contained in:
parent
d4a5edac16
commit
988c49a99f
@ -257,10 +257,9 @@ public class DaedalusVpnService extends VpnService implements Runnable {
|
|||||||
lastUpdate = time;
|
lastUpdate = time;
|
||||||
if (notification != null) {
|
if (notification != null) {
|
||||||
notification.setContentTitle(getResources().getString(R.string.notification_queries) + " " + String.valueOf(provider.getDnsQueryTimes()));
|
notification.setContentTitle(getResources().getString(R.string.notification_queries) + " " + String.valueOf(provider.getDnsQueryTimes()));
|
||||||
|
NotificationManager manager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||||
|
manager.notify(NOTIFICATION_ACTIVATED, notification.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
NotificationManager manager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);
|
|
||||||
manager.notify(NOTIFICATION_ACTIVATED, notification.build());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user