@Nullable static BitmapFactory.Options createBitmapOptions(Request data) {
    final boolean justBounds = data.hasSize();
    BitmapFactory.Options options = null;
    if (justBounds || data.config != null || data.purgeable) {
      options = new BitmapFactory.Options();
      options.inJustDecodeBounds = justBounds;
      options.inInputShareable = data.purgeable;
      options.inPurgeable = data.purgeable;
      if (data.config != null) {
        options.inPreferredConfig = data.config;
      }
    }
    return options;
  }
@ Nullable static BitmapFactory . Options createBitmapOptions ( Request data ) { final boolean justBounds = data . hasSize ( ) ; BitmapFactory . Options options = null ; if ( justBounds || data . config != null || data . purgeable ) { options = new BitmapFactory . Options ( ) ; options . inJustDecodeBounds = justBounds ; options . inInputShareable = data . purgeable ; options . inPurgeable = data . purgeable ; if ( data . config != null ) { options . inPreferredConfig = data . config ; } } return options ; }
Lazily create {@link BitmapFactory.Options} based in given
{@link Request}, only instantiating them if needed.