@@ -156,13 +156,11 @@ private void setBottomLineAttrs() {
156156 }
157157
158158 private void setSelectorAttrs () {
159- View selectorView = selectorContainer ;
160-
161- FrameLayout .LayoutParams selectorParams = (FrameLayout .LayoutParams ) selectorView .getLayoutParams ();
159+ FrameLayout .LayoutParams selectorParams = (FrameLayout .LayoutParams ) selectorContainer .getLayoutParams ();
162160 FrameLayout .LayoutParams bottomLineParams = (FrameLayout .LayoutParams ) v_bottomLine .getLayoutParams ();
163161
164162 if (selectorBringToFront )
165- selectorView .bringToFront ();
163+ selectorContainer .bringToFront ();
166164
167165 selectorParams .height = selectorSize ;
168166
@@ -237,9 +235,9 @@ private void setBorderAttrs() {
237235
238236 private float radius , animateImagesScale , animateTextsScale ;
239237
240- private boolean bottomLineBringToFront , selectorBringToFront , selectorAboveOfBottomLine , selectorTop , selectorBottom ,
241- hasPadding , hasPaddingLeft , hasPaddingRight , hasPaddingTop , hasPaddingBottom , hasDividerBackgroundColor , clickable ,
242- enabled , enableDeselection , hasEnabled , hasClickable , hasBorder , hasAnimateImages , hasAnimateTexts , hasAnimation ;
238+ private boolean bottomLineBringToFront , selectorBringToFront , selectorAboveOfBottomLine , selectorTop , selectorBottom , hasPadding ,
239+ hasPaddingLeft , hasPaddingRight , hasPaddingTop , hasPaddingBottom , hasDividerBackgroundColor , clickable , enabled ,
240+ enableDeselection , hasEnabled , hasClickable , hasBorder , hasAnimateImages , hasAnimateTexts , hasAnimation ;
243241
244242 private void getAttributes (AttributeSet attrs ) {
245243 TypedArray ta = getContext ().obtainStyledAttributes (attrs , R .styleable .RadioRealButtonGroup );
@@ -359,8 +357,11 @@ else if (checkedButtonId == NO_ID && button.isChecked())
359357
360358 if (lastPosition == position ) {
361359 button .setChecked (true );
362- button .bounceDrawable (animateImagesScale + 1 );
363- button .bounceText (animateTextsScale + 1 );
360+
361+ if (hasAnimateImages )
362+ button .bounceDrawable (animateImagesScale + 1 );
363+ if (hasAnimateTexts )
364+ button .bounceText (animateTextsScale + 1 );
364365 } else
365366 button .setChecked (false );
366367
0 commit comments