Пример #1
0
 @Override
 protected void onCancelled() {
   super.onCancelled();
   MyBus.getInstance().post(new LoadFailedEvent(getTag(), errorMsg));
 }
Пример #2
0
 @Override
 public void onStop() {
   MyBus.getInstance().unregister(this);
   super.onStop();
 }
Пример #3
0
 @Override
 protected void onPostExecute(List<MyPair<String, List<Food>>> listOfLists) {
   super.onPostExecute(listOfLists);
   MyBus.getInstance().post(new LoadSucceededEvent(getTag(), listOfLists));
 }
Пример #4
0
 @Override
 public void onStart() {
   super.onStart();
   MyBus.getInstance().register(this);
 }