private void adjustPersonalNoteVarsOutOfSyncButton(@Nullable final TextView personalNotOutOfSync) {
        if (personalNotOutOfSync == null) {
            return;
        }
        final Map<String, Pair<String, String>> varsOutOfSync = cache.getVariableDifferencesFromUserNotes();
        personalNotOutOfSync.setVisibility(varsOutOfSync.isEmpty() ? View.GONE : View.VISIBLE);
        personalNotOutOfSync.setText(LocalizationUtils.getString(R.string.cache_personal_note_vars_out_of_sync, varsOutOfSync.size()));
    }
Internal method to set new personal note and update all corresponding entities (DB, dialogs etc)

@param newNote                     new note to set
@param newPreventWaypointsFromNote new preventWaypointsFromNote flag to set
main/src/main/java/cgeo/geocaching/CacheDetailActivity.java