Code example for SparseBooleanArray

Methods: delete

0
notifyDataSetChanged();
	} 
	 
	public void deactivateGameState(int stateId) {
		activationStates.delete(stateId);
		notifyDataSetChanged();
	} 
	 
	public void deactivateAllGameStates() { 
		activationStates.clear();
		notifyDataSetChanged();
	} 
	 
	public void toggleGameStateActivation(int stateId) {
		if (isGameStateActivated(stateId)) {
			deactivateGameState(stateId);
		} else { 
			activateGameState(stateId);
		} 
	}