Merge pull request #500 from naoliv/pull15
Simplify boolean expressions
This commit is contained in:
commit
8020d72905
2 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ public class PoiFilter {
|
|||
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return false || (matcher != null && matcher.isCancelled());
|
||||
return (matcher != null && matcher.isCancelled());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue