check if syncing show settings iflates waypoint dialogue properly upon startup

This commit is contained in:
sonora 2014-09-11 01:48:29 +02:00
parent 738ac9803c
commit 72b822c897

View file

@ -419,6 +419,11 @@ public class WaypointHelper {
protected void recalculatePoints(RouteCalculationResult route, int type, List<List<LocationPointWrapper>> locationPoints) { protected void recalculatePoints(RouteCalculationResult route, int type, List<List<LocationPointWrapper>> locationPoints) {
//sync SHOW settings not otherwise accessible in settings menu
app.getSettings().SHOW_NEARBY_POI.set(app.getSettings().ANNOUNCE_NEARBY_POI.get());
app.getSettings().SHOW_NEARBY_FAVORITES.set(app.getSettings().ANNOUNCE_NEARBY_FAVORITES.get());
app.getSettings().SHOW_WPT.set(app.getSettings().ANNOUNCE_WPT.get());
boolean all = type == -1; boolean all = type == -1;
if (route != null && !route.isEmpty()) { if (route != null && !route.isEmpty()) {
if ((type == FAVORITES || all)) { if ((type == FAVORITES || all)) {