@SuppressLint("SetTextI18n")
	public void setNotifications(Integer notifications) {

		if ((notifications != null) && (notifications > 0)) {
			setVisibility(VISIBLE);
			if (notifications > maximum) {
				this.setText(maximum + "+");
			} else {
				this.setText(notifications.toString());
			}
		} else {
			setVisibility(GONE);
		}
	}
@ SuppressLint ( "SetTextI18n" ) public void setNotifications ( Integer notifications ) { if ( ( notifications != null ) && ( notifications > 0 ) ) { setVisibility ( VISIBLE ) ; if ( notifications > maximum ) { this . setText ( maximum + "+" ) ; } else { this . setText ( notifications . toString ( ) ) ; } } else { setVisibility ( GONE ) ; } }
Sets a notification number in the badge.

@param notifications