Skip to content

Commit

Permalink
bugfix: qmui_radius QMUIRoundButton in not work after version 1.0.4 #125
Browse files Browse the repository at this point in the history
  • Loading branch information
cgspine committed Dec 22, 2017
1 parent 2626d7e commit aace616
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ public static QMUIRoundButtonDrawable fromAttributeSet(Context context, Attribut
isRadiusAdjustBounds = false;
} else {
bg.setCornerRadius(mRadius);
if(mRadius > 0){
isRadiusAdjustBounds = false;
}
}
bg.setIsRadiusAdjustBounds(isRadiusAdjustBounds);
return bg;
Expand Down

0 comments on commit aace616

Please sign in to comment.