hide notification if nothing is ongoing
This commit is contained in:
parent
e868ebce01
commit
12815491d9
1 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,8 @@ public class NotificationHelper {
|
||||||
float dst = app.getSavingTrackHelper().getDistance();
|
float dst = app.getSavingTrackHelper().getDistance();
|
||||||
notificationText += ": "+OsmAndFormatter.getFormattedDistance(dst, app);
|
notificationText += ": "+OsmAndFormatter.getFormattedDistance(dst, app);
|
||||||
icon = R.drawable.ic_action_polygom_dark;
|
icon = R.drawable.ic_action_polygom_dark;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Intent contentIntent = new Intent(app, MapActivity.class);
|
Intent contentIntent = new Intent(app, MapActivity.class);
|
||||||
|
|
Loading…
Reference in a new issue