Simplify boolean expressions

This commit is contained in:
Nelson A. de Oliveira 2013-08-03 00:25:14 -03:00
parent ca60148431
commit f5be65b96e
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ public class PoiFilter {
@Override
public boolean isCancelled() {
return false || (matcher != null && matcher.isCancelled());
return (matcher != null && matcher.isCancelled());
}
};
}

View file

@ -112,7 +112,7 @@ public class NextTurnInfoWidget extends BaseMapWidget {
String text = OsmAndFormatter.getFormattedDistance(nextTurnDirection, getClientContext());
String subtext = null;
if (makeUturnWhenPossible == true) {
if (makeUturnWhenPossible) {
text = getResources().getString(R.string.asap);
}