Simplify boolean expressions
This commit is contained in:
parent
ca60148431
commit
f5be65b96e
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