diff --git a/mobile/android/base/TabsTray.java b/mobile/android/base/TabsTray.java index c8e7175dc61..6ddf5bc5416 100644 --- a/mobile/android/base/TabsTray.java +++ b/mobile/android/base/TabsTray.java @@ -324,6 +324,15 @@ public class TabsTray extends LinearLayout PropertyAnimator animator = new PropertyAnimator(ANIMATION_DURATION); animator.attach(view, Property.ALPHA, 1); animator.attach(view, Property.TRANSLATION_X, 0); + + animator.setPropertyAnimationListener(new PropertyAnimator.PropertyAnimationListener() { + public void onPropertyAnimationStart() { } + public void onPropertyAnimationEnd() { + TabRow tab = (TabRow) view.getTag(); + tab.close.setVisibility(View.VISIBLE); + } + }); + animator.start(); } @@ -472,6 +481,7 @@ public class TabsTray extends LinearLayout mListView.requestDisallowInterceptTouchEvent(true); TabRow tab = (TabRow) mSwipeView.getTag(); + tab.close.setVisibility(View.INVISIBLE); // Stops listview from highlighting the touched item // in the list when swiping.