Ejemplo n.º 1
0
 private boolean isForbidden(Category category) {
   boolean result = false;
   if (WordpressFetcher.getInstance(mContext)
       .getForbiddenCategories()
       .contains(category.getTitle())) {
     result = true;
   }
   return result;
 }
Ejemplo n.º 2
0
  /** 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();
  }