@Override
    protected void onSaveInstanceState(@NonNull final Bundle outState) {
        super.onSaveInstanceState(outState);
        outState.putInt(SAVED_STATE_LOGEDITMODE, this.logEditMode.ordinal());
        outState.putParcelable(SAVED_STATE_OLDLOGENTRY, this.originalLogEntry);
        outState.putParcelable(SAVED_STATE_LOGENTRY, getEntryFromView());
        outState.putInt(SAVED_STATE_AVAILABLE_FAV_POINTS, availableFavoritePoints);
        outState.putInt(SAVED_STATE_FAVORITE, this.binding.favoriteCheck.isChecked() ? 1 : 0);
        if (this.binding.favoriteCheck.isChecked()) {
            cache.setFavorite(true);
        }
    }
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