case DialogInterface.BUTTON_POSITIVE:
String newName = input.getText().toString();
category.setName(newName);
adapter.notifyDataSetChanged();
DatabaseHandler.getInstance().updateCategoryName(category.getId(), newName);
<BUG>Toast.makeText(getActivity(), "New name: " + newName, Toast.LENGTH_SHORT).show();
break;</BUG>
case DialogInterface.BUTTON_NEGATIVE:
break;
}

case DialogInterface.BUTTON_POSITIVE:
String categoryName = input.getText().toString();
selectColor(categoryName);
break;
case DialogInterface.BUTTON_NEGATIVE:
break;
