diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-10-09 12:15:53 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-10-09 12:15:55 +0200 |
commit | 57074a76937412d57d0260449edee47e016bc510 (patch) | |
tree | 64935ffa1e821f220cd6362f594f26b6f39381a4 /main/src/cgeo/geocaching/cgeodetail.java | |
parent | 4fd81318fb41f4e53e5c56aaf84d531d8b385c69 (diff) | |
download | cgeo-57074a76937412d57d0260449edee47e016bc510.zip cgeo-57074a76937412d57d0260449edee47e016bc510.tar.gz cgeo-57074a76937412d57d0260449edee47e016bc510.tar.bz2 |
Remove comparisons to booleans
Diffstat (limited to 'main/src/cgeo/geocaching/cgeodetail.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeodetail.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/cgeodetail.java b/main/src/cgeo/geocaching/cgeodetail.java index 7afc505..933fffc 100644 --- a/main/src/cgeo/geocaching/cgeodetail.java +++ b/main/src/cgeo/geocaching/cgeodetail.java @@ -996,7 +996,7 @@ public class cgeodetail extends AbstractActivity { showDesc.setOnTouchListener(null); showDesc.setOnClickListener(null); } - } else if (longDescDisplayed == false && StringUtils.isNotBlank(cache.getDescription())) { + } else if (!longDescDisplayed && StringUtils.isNotBlank(cache.getDescription())) { ((LinearLayout) findViewById(R.id.desc_box)).setVisibility(View.VISIBLE); Button showDesc = (Button) findViewById(R.id.show_description); @@ -1031,7 +1031,7 @@ public class cgeodetail extends AbstractActivity { final TextView identification = (TextView) waypointView.findViewById(R.id.identification); ((TextView) waypointView.findViewById(R.id.type)).setText(cgBase.waypointTypes.get(wpt.type)); - if (wpt.getPrefix().equalsIgnoreCase("OWN") == false) { + if (!wpt.getPrefix().equalsIgnoreCase("OWN")) { identification.setText(wpt.getPrefix().trim() + "/" + wpt.lookup.trim()); } else { identification.setText(res.getString(R.string.waypoint_custom)); @@ -1382,7 +1382,7 @@ public class cgeodetail extends AbstractActivity { } public void loadLongDesc() { - if (waitDialog == null || waitDialog.isShowing() == false) { + if (waitDialog == null || !waitDialog.isShowing()) { descDialog = ProgressDialog.show(this, null, res.getString(R.string.cache_dialog_loading_description), true); descDialog.setCancelable(true); } |