public boolean remove ( JobStatus jobStatus ) { boolean removed = mJobSet . remove ( jobStatus ) ; if ( ! removed ) { return false ; } if ( ! jobStatus . isPersisted ( ) ) { unmarkForBootSession ( jobStatus ) ; } maybeWriteStatusToDiskAsync ( ) ; return removed ; }
Remove the provided job . Will also delete the job if it was persisted .