1818import java .util .Map ;
1919
2020import jp .wasabeef .glide .transformations .RoundedCornersTransformation ;
21+ import jp .wasabeef .glide .transformations .RoundedCornersTransformation .CornerType ;
2122
2223public class ExtendedPhotoView extends PhotoView {
2324 protected String mPath = null ;
24- protected Map <RoundedCornersTransformation . CornerType , Integer > mBorderRadii = null ;
25+ protected Map <CornerType , Integer > mBorderRadii = null ;
2526 protected ScaleType mScaleType ;
2627
2728 protected ThemedReactContext mContext = null ;
@@ -40,9 +41,9 @@ public void setScaleType(ScaleType scaleType) {
4041 mScaleType = scaleType ;
4142 }
4243
43- public void setBorderRadius (int borderRadius , RoundedCornersTransformation . CornerType cornerType ) {
44+ public void setBorderRadius (int borderRadius , CornerType cornerType ) {
4445 if (mBorderRadii == null ) {
45- mBorderRadii = new HashMap <RoundedCornersTransformation . CornerType , Integer >();
46+ mBorderRadii = new HashMap <CornerType , Integer >();
4647 }
4748 mBorderRadii .put (cornerType , borderRadius );
4849 }
@@ -53,7 +54,7 @@ public void updateView() {
5354
5455 if (mBorderRadii != null ) {
5556 ArrayList <Transformation > transformations = new ArrayList <>();
56- for (RoundedCornersTransformation . CornerType cornerType : mBorderRadii .keySet ()) {
57+ for (CornerType cornerType : mBorderRadii .keySet ()) {
5758 transformations .add (new RoundedCornersTransformation (mContext , mBorderRadii .get (cornerType ), 0 , cornerType ));
5859 }
5960 Transformation [] transformationsArray ;
0 commit comments