private void queueOrSubmitUpload ( String key , File file ) { if ( mReadyToBroadcast ) { submitUpload ( key , file ) ; } else { if ( VERBOSE ) Log . i ( TAG , "queueing " + key + " until S3 Credentials available" ) ; queueUpload ( key , file ) ; } }
Handle an upload either submitting to the S3 client or queueing for submission once credentials are ready