public void checkFinish(final Runnable runnable) {
        if (logEditMode == LogEditMode.EDIT_EXISTING && getEntryFromView().hasSaveRelevantChanges(originalLogEntry)) {
            SimpleDialog.of(this).setTitle(TextParam.id(R.string.confirm_unsent_changes_title))
                .setMessage(TextParam.id(R.string.confirm_unsent_changes))
                .confirm(runnable);
        } else {
            runnable.run();
        }
    }
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