public void finish(final SaveMode saveMode) {
        saveLog(saveMode);
        if (lastSavedState != null && !StringUtils.isBlank(lastSavedState.log)) {
            Settings.setLastCacheLog(lastSavedState.log);
        }
        logActivityHelper.finish();
        super.finish();
    }
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