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

@ Thunk boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { if ( LOGD ) Log . d ( 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 the activity is paused . that is because the configuration ( e . g . , rotation ) might be wrong when we ' re not running , and if the activity comes back to what the configuration was when we were paused , activity is not restarted . implementation of the method from launchermodel . callbacks .
