Bug 732901 - Use notifyDatasetChanged() to update view after modifying mTabsAdapter. r=sriram

This commit is contained in:
Margaret Leibovic
2012-05-16 15:40:16 -07:00
parent 5e7c29adc1
commit c1baf9ff62

View File

@@ -163,8 +163,7 @@ public class TabsTray extends GeckoActivity implements Tabs.OnTabsChangedListene
if (Tabs.getInstance().getIndexOf(tab) == -1) {
mWaitingForClose = false;
mTabsAdapter.removeTab(tab);
mList.invalidateViews();
mListContainer.requestLayout();
mTabsAdapter.notifyDataSetChanged();
} else {
View view = mList.getChildAt(position - mList.getFirstVisiblePosition());
if (view == null)
@@ -344,13 +343,5 @@ public class TabsTray extends GeckoActivity implements Tabs.OnTabsChangedListene
return convertView;
}
@Override
public void notifyDataSetChanged() {
}
@Override
public void notifyDataSetInvalidated() {
}
}
}