@Override
    public void onLoadFinished(@NonNull final Loader<LogContextInfo> loader, final LogContextInfo data) {
        Log.i("LogCacheActivity.onLoadFinished()");
        if (data.hasLoadError()) {
            showErrorLoadingData(data.getUserDisplayableErrorMessage());
        }
        if (!data.getAvailableLogTypes().isEmpty()) {
            setLogTypeValues(data.getAvailableLogTypes());
        }
        if (!data.getAvailableTrackables().isEmpty()) {
            inventoryAdapter.setTrackables(data.getAvailableTrackables());
        }
        if (!data.getAvailableReportProblemTypes().isEmpty()) {
            final List<ReportProblemType> list = data.getAvailableReportProblemTypes();
            reportProblem.setValues(list);

        }
        if (data.getAvailableFavoritePoints() >= 0) {
            this.availableFavoritePoints = data.getAvailableFavoritePoints();
        }


        refreshGui();
        showProgress(false);
    }
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