Bug 839885 - Update the selected tab style before calling setSelection. r=lucasr

This commit is contained in:
Margaret Leibovic 2014-02-21 11:20:37 -08:00
parent 3fc84c2f5f
commit 0243173eb3

View File

@ -202,11 +202,11 @@ public class TabsTray extends TwoWayView
// Updates the selected position in the list so that it will be scrolled to the right place.
private void updateSelectedPosition() {
int selected = getPositionForTab(Tabs.getInstance().getSelectedTab());
updateSelectedStyle(selected);
if (selected != -1) {
TabsTray.this.setSelection(selected);
}
updateSelectedStyle(selected);
}
/**