Example #1
0
 @Override
 public void onResume() {
   super.onResume();
   adView.resume();
   uiHelper.onResume();
   imageFetcher.setExitTasksEarly(false);
 }
Example #2
0
  @Override
  public void onPause() {
    super.onPause();
    adView.pause();
    uiHelper.onPause();

    imageFetcher.setPauseWork(false);
    imageFetcher.setExitTasksEarly(true);
    imageFetcher.flushCache();
  }