sPFApp/src/main/java/it/polimi/spf/app/view/CircleSelectSpinner.java
@Override
	public void onClick(DialogInterface dialog, int which, boolean isChecked) {
		if (mSelection != null && which < mSelection.length) {
			mSelection[which] = isChecked;

			List<String> selected = getSelectedStrings();

			mProxyAdapter.clear();
			mProxyAdapter.add(mHelper.sumUpCircles(selected));
			setSelection(0);

			if (mListener != null) {
				String item = mItems[which];
				if (isChecked) {
					mListener.onItemAdded(item);
				} else {
					mListener.onItemRemoved(item);
				}
			}

		} else {
			throw new IllegalArgumentException("Argument 'which' is out of bounds.");
		}
	}
@Override
	public void onClick(DialogInterface dialog, int which, boolean isChecked) {
		if (mSelection != null && which < mSelection.length) {
			mSelection[which] = isChecked;

			List<String> selected = getSelectedStrings();

			mProxyAdapter.clear();
			mProxyAdapter.add(mHelper.sumUpCircles(selected));
			setSelection(0);

			if (mListener != null) {
				String item = mItems[which];
				if (isChecked) {
					mListener.onItemAdded(item);
				} else {
					mListener.onItemRemoved(item);
				}
			}

		} else {
			throw new IllegalArgumentException("Argument 'which' is out of bounds.");
		}
	}
{@inheritDoc}