Add ImageOptions#extend()
Summary:
This adds a nicer extend API:
Before:
```
ImageOptions.extend(imageOptions).scaleType(FIT_XY).build()
```
After:
```
imageOptions.extend().scaleType(FIT_XY).build()
```
@@ -99,6 +99,10 @@ public class ImageOptions extends DecodedImageOptions {
mAutoPlay = builder.mAutoPlay;
}
+ public Builder extend() {
+ return ImageOptions.extend(this);
+ }
+
public @DrawableRes int getPlaceholderRes() {
return mPlaceholderRes;
}
