newCategory.setColor(color);
long id = DatabaseHandler.getInstance().addCategory(newCategory, true, true);
newCategory.setId(id);
adapter.add(newCategory);
adapter.notifyDataSetChanged();
<BUG>Toast.makeText(getActivity(), "Category created", Toast.LENGTH_SHORT).show();
}</BUG>
});
colorCalendar.show(getChildFragmentManager(), "dash");
}

newCategory.setColor(color);
long id = DatabaseHandler.getInstance().addCategory(newCategory, true, true);
newCategory.setId(id);
adapter.add(newCategory);
adapter.notifyDataSetChanged();
Crouton.makeText(getActivity(), R.string.category_created, Style.CONFIRM,  topView).show();
}
});
colorCalendar.show(getChildFragmentManager(), "dash");
