protected void saveCategory() { if (mCategoryId <= AccountManager.DEFAULT_CATEGORY_ID) { mCategoryId = AccountManager.getInstance().addCategory(mCategoryIcon, mCategoryName); } else { AccountManager.getInstance().setCategory(mCategoryId, mCategoryName, mCategoryIcon); } Application.showToast(getActivity(), R.string.category_saved, Toast.LENGTH_SHORT); mAdapter.moveData(mCategoryId); mListener.onCategorySaved(); }