Skip to content

Commit da6ae88

Browse files
committed
readability
1 parent 9791208 commit da6ae88

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

android/src/main/java/io/rumors/reactnativefirebaseui/storage/ExtendedPhotoView.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
import java.util.Map;
1919

2020
import jp.wasabeef.glide.transformations.RoundedCornersTransformation;
21+
import jp.wasabeef.glide.transformations.RoundedCornersTransformation.CornerType;
2122

2223
public 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

Comments
 (0)