Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit ca3606d

Browse files
authored
small fix to imageFilter (#192)
1 parent 36431aa commit ca3606d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

constraintlayout/constraintlayout/src/main/java/androidx/constraintlayout/utils/widget/ImageFilterButton.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ private void init(Context context, AttributeSet attrs) {
151151
}
152152
a.recycle();
153153

154+
mDrawable = getDrawable();
154155
if (mAltDrawable != null && mDrawable != null) {
155156

156157
mLayers[0] = mDrawable = getDrawable().mutate();

constraintlayout/constraintlayout/src/main/java/androidx/constraintlayout/utils/widget/ImageFilterView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ private void init(Context context, AttributeSet attrs) {
535535
}
536536
a.recycle();
537537

538+
mDrawable = getDrawable();
538539
if (mAltDrawable != null && mDrawable != null) {
539540

540541
mLayers[0] = mDrawable = getDrawable().mutate();

0 commit comments

Comments
 (0)