Bug 732901 - Use notifyDatasetChanged() to update view after modifying mTabsAdapter. r=sriram
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user