Skip to content

Commit

Permalink
fix bug: visibility xml attr
Browse files Browse the repository at this point in the history
  • Loading branch information
lsjwzh committed May 15, 2015
1 parent d68ae7b commit 03b4472
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto
super.setImageDrawable(null);
super.setImageDrawable(mProgressDrawable);
mProgressDrawable.setAlpha(255);
mProgressDrawable.start();
if(getVisibility()==VISIBLE) {
mProgressDrawable.start();
}
}

@Override
Expand Down

0 comments on commit 03b4472

Please sign in to comment.