@Override protected void onCancelled() { super.onCancelled(); MyBus.getInstance().post(new LoadFailedEvent(getTag(), errorMsg)); }
@Override public void onStop() { MyBus.getInstance().unregister(this); super.onStop(); }
@Override protected void onPostExecute(List<MyPair<String, List<Food>>> listOfLists) { super.onPostExecute(listOfLists); MyBus.getInstance().post(new LoadSucceededEvent(getTag(), listOfLists)); }
@Override public void onStart() { super.onStart(); MyBus.getInstance().register(this); }