private boolean waitUntilResume(Runnable run,boolean deletePreviousRunnables){
  if (mPaused) {
    Log.i(TAG,"Deferring update until onResume");
    if (deletePreviousRunnables) {
      while (mBindOnResumeCallbacks.remove(run)) {
      }
    }
    mBindOnResumeCallbacks.add(run);
    return true;
  }
 else {
    return false;
  }
}

private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , "Deferring update until onResume" ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return true ; } else { return false ; } }
if the activity is currently paused , signal that we need to run the passed runnable in onresume . this needs to be called from incoming places where resources might have been loaded while we are paused . that is becaues the configuration might be wrong when we ' re not running , and if it comes back to what it was when we were paused , we are not restarted . implementation of the method from launchermodel . callbacks .
