We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7ec78 commit 0a5a71fCopy full SHA for 0a5a71f
android/src/main/java/org/reactnative/maskedview/RNCMaskedView.java
@@ -77,17 +77,14 @@ protected void onAttachedToWindow() {
77
}
78
79
private void updateBitmapMask() {
80
- if (this.mBitmapMask != null) {
81
- this.mBitmapMask.recycle();
82
- }
83
-
84
View maskView = getChildAt(0);
85
if (maskView != null) {
86
maskView.setVisibility(View.VISIBLE);
+ if (this.mBitmapMask != null) {
+ this.mBitmapMask.recycle();
+ }
87
this.mBitmapMask = getBitmapFromView(maskView);
88
maskView.setVisibility(View.INVISIBLE);
89
- } else{
90
- this.mBitmapMask = null;
91
92
93
0 commit comments