File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -121,14 +121,15 @@ void showOnly(int childIndex) {
121121 final int count = getChildCount ();
122122 for (int i = 0 ; i < count ; i ++) {
123123 final View child = getChildAt (i );
124+ final boolean checkForFirst = (!mFirstTime || mAnimateFirstTime );
124125 if (i == childIndex ) {
125- if ((! mFirstTime || mAnimateFirstTime ) && mInAnimation != null ) {
126+ if (checkForFirst && mInAnimation != null ) {
126127 child .startAnimation (mInAnimation );
127128 }
128129 child .setVisibility (View .VISIBLE );
129130 mFirstTime = false ;
130131 } else {
131- if (mOutAnimation != null && child .getVisibility () == View .VISIBLE ) {
132+ if (checkForFirst && mOutAnimation != null && child .getVisibility () == View .VISIBLE ) {
132133 child .startAnimation (mOutAnimation );
133134 } else if (child .getAnimation () == mInAnimation )
134135 child .clearAnimation ();
You can’t perform that action at this time.
0 commit comments