adjust isTypeEnabled to cover both SHOW and ANNOUNCE
This commit is contained in:
parent
f96a3e99e8
commit
a815137fdc
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue