private boolean isForbidden(Category category) { boolean result = false; if (WordpressFetcher.getInstance(mContext) .getForbiddenCategories() .contains(category.getTitle())) { result = true; } return result; }
/** Runs on the UI thread before doInBackground(Params...). */ @Override protected void onPreExecute() { super.onPreExecute(); WORDPRESS_FETCH_ALL_CATEGORIES_URL = String.format( WORDPRESS_FETCH_ALL_CATEGORIES_URL, WordpressFetcher.getInstance(mContext).getServerUrl()); setUpOfflineKey(); }