adjust isTypeEnabled to cover both SHOW and ANNOUNCE

This commit is contained in:
sonora 2014-09-10 17:37:24 +02:00
parent f96a3e99e8
commit a815137fdc

View file

@ -225,13 +225,13 @@ public class WaypointHelper {
public boolean isTypeEnabled(int type) {
if(type == ALARMS) {
return showAlarms();
return showAlarms() || announceAlarms();
} else if(type == POI) {
return showPOI();
return showPOI() || announcePOI();
} else if(type == FAVORITES) {
return showFavorites();
return showFavorites() || announceFavorites();
} else if(type == WAYPOINTS) {
return showGPXWaypoints();
return showGPXWaypoints() || announceGPXWaypoints();
}
return true;
}