Reduce number of false positives cases with download button

This commit is contained in:
vshcherb 2013-11-26 13:42:48 +01:00
parent 36023ddb15
commit 0e2545194d
2 changed files with 5 additions and 0 deletions

View file

@ -476,6 +476,7 @@ public class MapRenderRepositories {
try {
c.searchMapIndex(searchRequest);
} catch (IOException e) {
return false;
}
if (!empty[0]) {
return false;
@ -487,6 +488,7 @@ public class MapRenderRepositories {
return false;
}
} catch (IOException e) {
return false;
}
}
}

View file

@ -646,14 +646,17 @@ public class RouteInfoWidgetsFactory {
}
} else if(alarm.getType() == AlarmInfo.SPEED_CAMERA) {
locimgId = R.drawable.warnings_speed_camera;
text = "";
} else if(alarm.getType() == AlarmInfo.BORDER_CONTROL) {
text = "CLO";
} else if(alarm.getType() == AlarmInfo.TOLL_BOOTH) {
text = "$";
} else if(alarm.getType() == AlarmInfo.TRAFFIC_CALMING) {
locimgId = R.drawable.warnings_speed_bump;
text = "";
} else if(alarm.getType() == AlarmInfo.STOP) {
// text = "STOP";
text = "";
}
visible = (text != null && text.length() > 0) || locimgId != 0;
if (visible) {