private void updateWherigoBox(final CacheDetailActivity activity) {
            final List<String> wherigoGuis = WherigoUtils.getWherigoGuids(cache);
            binding.wherigoBox.setVisibility(!wherigoGuis.isEmpty() ? View.VISIBLE : View.GONE);
            binding.wherigoText.setText(wherigoGuis.isEmpty() || Settings.hasGCCredentials() ? R.string.cache_wherigo_start : R.string.cache_wherigo_credentials);
            binding.playInCgeo.setOnClickListener(v -> {
                    if (Settings.hasGCCredentials()) {
                        WherigoViewUtils.executeForOneCartridge(activity, wherigoGuis, guid ->
                                WherigoActivity.startForGuid(activity, guid, cache.getGeocode(), true));
                    } else {
                        SettingsActivity.openForScreen(R.string.preference_screen_gc, activity);
                    }
            });
        }
Show/hide buttons, set text in favorite line and box
main/src/main/java/cgeo/geocaching/CacheDetailActivity.java