зеркало из https://github.com/mozilla/gecko-dev.git
Bug 786982: Add the hiding of close tab, while swiping. r=lucasr
This commit is contained in:
Родитель
bc1b45a752
Коммит
8c27315129
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче