Search in sources :

Example 1 with OsmandNotification

use of net.osmand.plus.notifications.OsmandNotification in project Osmand by osmandapp.

the class NotificationHelper method buildTopNotification.

public Notification buildTopNotification() {
    OsmandNotification notification = acquireTopNotification();
    if (notification != null) {
        removeNotification(notification.getType());
        setTopNotification(notification);
        Builder notificationBuilder = notification.buildNotification(false);
        return notificationBuilder.build();
    }
    return null;
}
Also used : Builder(android.support.v4.app.NotificationCompat.Builder) OsmandNotification(net.osmand.plus.notifications.OsmandNotification)

Example 2 with OsmandNotification

use of net.osmand.plus.notifications.OsmandNotification in project Osmand by osmandapp.

the class NotificationHelper method updateTopNotification.

public void updateTopNotification() {
    OsmandNotification notification = acquireTopNotification();
    setTopNotification(notification);
}
Also used : OsmandNotification(net.osmand.plus.notifications.OsmandNotification)

Aggregations

OsmandNotification (net.osmand.plus.notifications.OsmandNotification)2 Builder (android.support.v4.app.NotificationCompat.Builder)1