Merge "End button fade animation when its visiblity changes" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ab662fe8a5
@@ -141,6 +141,11 @@ public class ButtonDispatcher {
|
|||||||
|
|
||||||
public void setVisibility(int visibility) {
|
public void setVisibility(int visibility) {
|
||||||
if (mVisibility == visibility) return;
|
if (mVisibility == visibility) return;
|
||||||
|
if (mFadeAnimator != null) {
|
||||||
|
mFadeAnimator.cancel();
|
||||||
|
mFadeAnimator = null;
|
||||||
|
}
|
||||||
|
|
||||||
mVisibility = visibility;
|
mVisibility = visibility;
|
||||||
final int N = mViews.size();
|
final int N = mViews.size();
|
||||||
for (int i = 0; i < N; i++) {
|
for (int i = 0; i < N; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user