code: public void clearJob() {
      EncodedImage oldEncodedImage;
      synchronized (this) {
        oldEncodedImage = mEncodedImage;
        mEncodedImage = null;
        mStatus = 0;
      }
      EncodedImage.closeSafely(oldEncodedImage);
    }
docs: Clears the currently set job.
  
  <p> In case the currently set job has been scheduled but not started yet, the job won't be
  executed.