@Override
        public void onDestroy() {
            super.onDestroy();
            if (cache != null && cache.getVariables() != null) {
                cache.getVariables().removeChangeListener(this);
            }
        }
Show/hide buttons, set text in favorite line and box
main/src/main/java/cgeo/geocaching/CacheDetailActivity.java