@NonNull
        private LogTypeTrackable checkAndGetAction(final String key, @Nullable final LogTypeTrackable candidate) {
            if (candidate != null && candidate.allowedForInventory) {
                actionLogs.put(key, candidate);
                return candidate;
            }

            final LogTypeTrackable result = actionLogs.get(key);
            if (result != null) {
                return result;
            }

            LogTypeTrackable newAction = LastTrackableAction.getLastAction(key);
            if (newAction == null || !newAction.allowedForInventory) {
                newAction = Settings.isTrackableAutoVisit() ? LogTypeTrackable.VISITED : LogTypeTrackable.DO_NOTHING;
            }
            actionLogs.put(key, newAction);
            return newAction;

        }
Checks whether there are favorite points available and sets the corresponding visibility of
"add to favorite" checkbox.
main/src/main/java/cgeo/geocaching/log/LogCacheActivity.java