@Override
    protected void onNewResultImpl(@Nullable EncodedImage newResult, @Status int status) {
      if (newResult != null
          && (isNotLast(status)
              || ThumbnailSizeChecker.isImageBigEnough(newResult, mResizeOptions))) {
        getConsumer().onNewResult(newResult, status);
      } else if (isLast(status)) {
        EncodedImage.closeSafely(newResult);

        boolean fallback =
            produceResultsFromThumbnailProducer(
                mProducerIndex + 1, getConsumer(), mProducerContext);

        if (!fallback) {
          getConsumer().onNewResult(null, Consumer.IS_LAST);
        }
      }
    }
Producer that will attempt to retrieve a thumbnail from one or more producers.

<p>The producer will try to get a result from each producer only if there is a good chance of it
being able to produce a sufficient result.

<p>If no underlying producer can provide a suitable result, null result is returned to the
consumer
imagepipeline/src/main/java/com/facebook/imagepipeline/producers/ThumbnailBranchProducer.java