private void loadData(String providerName, boolean limit, boolean dialogShow, boolean update) { int maxItemLoad = limit ? dbQuery.getRssSettings()[1] : 0; rssFeed = dbQuery.getRssFeed(providerName, maxItemLoad); if (providerName == null) curProvider = -1; updateListView(); if (isTaskRunning) Toast.makeText(RssReaderActivity.this, R.string.rss_keep_updating, Toast.LENGTH_SHORT).show(); else if (update) new RssDownloadTask(providerName, maxItemLoad, dialogShow).execute(); }