@Override public void onPreExecute() { super.onPreExecute(); mRefreshing = true; mSwipeRefresh.setRefreshing(true); }
@Override protected void onPostExecute(Void result) { super.onPostExecute(result); mText.setText(""); mText.setEnabled(true); new Refresher().execute(true); }
@Override public void onPostExecute(Boolean result) { super.onPostExecute(result); mAdapter.notifyDataSetChanged(); mRefreshing = false; mSwipeRefresh.setRefreshing(false); }
@Override protected void onPreExecute() { super.onPreExecute(); mRefreshing = true; mSwipeRefresh.setIsDown(true); mSwipeRefresh.setRefreshing(true); mText.setEnabled(false); }