fix typos

This commit is contained in:
sonora 2014-12-20 17:26:04 +01:00
parent cb4067d727
commit 81bf9695a8

View file

@ -677,31 +677,31 @@ public class WaypointHelper {
} else if(type == ALARMS) {
//assign alarm list icons manually for now
//attention, some list icons are only temporary test icons, not pixel perfect yet.
if(((AlarmInfo) point).getType().toString()="SPEED_CAMERA") {
if(((AlarmInfo) point).getType().toString() == "SPEED_CAMERA") {
return uiCtx.getResources().getDrawable(R.drawable.mx_highway_speed_camera);
} else if(((AlarmInfo) point).getType().toString()="BORDER_CONTROL") {
return uiCtx.getResources().getDrawable(R.drawable.mx_barrier_border_control);
} else if(((AlarmInfo) point).getType().toString()="RAILWAY") {
} else if(((AlarmInfo) point).getType().toString() == "BORDER_CONTROL") {
R.drawable.mx_barrier_border_control;
} else if(((AlarmInfo) point).getType().toString() == "RAILWAY") {
if(app.getSettings.DRIVING_REGION.get().americanSigns){
return uiCtx.getResources().getDrawable(R.drawable.list_warnings_railways_us);
return R.drawable.list_warnings_railways_us;
} else {
return uiCtx.getResources().getDrawable(R.drawable.list_warnings_railways);
return R.drawable.list_warnings_railways;
}
} else if(((AlarmInfo) point).getType().toString()="TRAFFIC_CALMING") {
} else if(((AlarmInfo) point).getType().toString() == "TRAFFIC_CALMING") {
if(app.getSettings.DRIVING_REGION.get().americanSigns){
return uiCtx.getResources().getDrawable(R.drawable.list_traffic_calming_us);
return R.drawable.list_traffic_calming_us;
} else {
return uiCtx.getResources().getDrawable(R.drawable.list_traffic_calming);
return R.drawable.list_traffic_calming;
}
} else if(((AlarmInfo) point).getType().toString()="TOLL_BOOTH") {
return uiCtx.getResources().getDrawable(R.drawable.mx_barrier_toll_booth);
} else if(((AlarmInfo) point).getType().toString()="STOP") {
return uiCtx.getResources().getDrawable(R.drawable.list_stop);
} else if(((AlarmInfo) point).getType().toString()="PEDESTRIAN") {
} else if(((AlarmInfo) point).getType().toString() == "TOLL_BOOTH") {
return R.drawable.mx_barrier_toll_booth;
} else if(((AlarmInfo) point).getType().toString() == "STOP") {
return R.drawable.list_stop;
} else if(((AlarmInfo) point).getType().toString() == "PEDESTRIAN") {
if(app.getSettings.DRIVING_REGION.get().americanSigns){
return uiCtx.getResources().getDrawable(R.drawable.list_warnings_pedestrian_us);
return R.drawable.list_warnings_pedestrian_us;
} else {
return uiCtx.getResources().getDrawable(R.drawable.list_warnings_pedestrian);
return R.drawable.list_warnings_pedestrian;
}
} else {
return 0;
@ -733,27 +733,27 @@ public class WaypointHelper {
} else if(type == ALARMS) {
//assign alarm list icons manually for now
//attention, some list icons are only temporary test icons, not pixel perfect yet.
if(((AlarmInfo) point).getType().toString()="SPEED_CAMERA") {
if(((AlarmInfo) point).getType().toString() == "SPEED_CAMERA") {
return uiCtx.getResources().getDrawable(R.drawable.mx_highway_speed_camera);
} else if(((AlarmInfo) point).getType().toString()="BORDER_CONTROL") {
} else if(((AlarmInfo) point).getType().toString() == "BORDER_CONTROL") {
return uiCtx.getResources().getDrawable(R.drawable.mx_barrier_border_control);
} else if(((AlarmInfo) point).getType().toString()="RAILWAY") {
} else if(((AlarmInfo) point).getType().toString() == "RAILWAY") {
if(app.getSettings.DRIVING_REGION.get().americanSigns){
return uiCtx.getResources().getDrawable(R.drawable.list_warnings_railways_us);
} else {
return uiCtx.getResources().getDrawable(R.drawable.list_warnings_railways);
}
} else if(((AlarmInfo) point).getType().toString()="TRAFFIC_CALMING") {
} else if(((AlarmInfo) point).getType().toString() == "TRAFFIC_CALMING") {
if(app.getSettings.DRIVING_REGION.get().americanSigns){
return uiCtx.getResources().getDrawable(R.drawable.list_traffic_calming_us);
} else {
return uiCtx.getResources().getDrawable(R.drawable.list_traffic_calming);
}
} else if(((AlarmInfo) point).getType().toString()="TOLL_BOOTH") {
} else if(((AlarmInfo) point).getType().toString() == "TOLL_BOOTH") {
return uiCtx.getResources().getDrawable(R.drawable.mx_barrier_toll_booth);
} else if(((AlarmInfo) point).getType().toString()="STOP") {
} else if(((AlarmInfo) point).getType().toString() == "STOP") {
return uiCtx.getResources().getDrawable(R.drawable.list_stop);
} else if(((AlarmInfo) point).getType().toString()="PEDESTRIAN") {
} else if(((AlarmInfo) point).getType().toString() == "PEDESTRIAN") {
if(app.getSettings.DRIVING_REGION.get().americanSigns){
return uiCtx.getResources().getDrawable(R.drawable.list_warnings_pedestrian_us);
} else {