Merge pull request #500 from naoliv/pull15

Simplify boolean expressions
This commit is contained in:
vshcherb 2013-08-05 10:24:48 -07:00
commit 8020d72905
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);
}