public static void addWherigoBadgeNotifications(final View view) {
        if (view == null) {
            return;
        }
        final Runnable refreshRoutine = () -> {
            if (WherigoGame.get().isLastErrorNotSeen() || WherigoGame.get().dialogIsPaused()) {
                BadgeManager.get().setBadge(view, false, -1);
            } else {
                BadgeManager.get().removeBadge(view);
            }
        };

        final int listenerId = WherigoGame.get().addListener(nt -> refreshRoutine.run());
        ViewUtils.addDetachListener(view, v -> WherigoGame.get().removeListener(listenerId));
        refreshRoutine.run();
    }
adds badge logic to the given view to display current wherigo information as badges
main/src/main/java/cgeo/geocaching/wherigo/WherigoViewUtils.java