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) {
|
if (Tabs.getInstance().getIndexOf(tab) == -1) {
|
||||||
mWaitingForClose = false;
|
mWaitingForClose = false;
|
||||||
mTabsAdapter.removeTab(tab);
|
mTabsAdapter.removeTab(tab);
|
||||||
mList.invalidateViews();
|
mTabsAdapter.notifyDataSetChanged();
|
||||||
mListContainer.requestLayout();
|
|
||||||
} else {
|
} else {
|
||||||
View view = mList.getChildAt(position - mList.getFirstVisiblePosition());
|
View view = mList.getChildAt(position - mList.getFirstVisiblePosition());
|
||||||
if (view == null)
|
if (view == null)
|
||||||
@@ -344,13 +343,5 @@ public class TabsTray extends GeckoActivity implements Tabs.OnTabsChangedListene
|
|||||||
|
|
||||||
return convertView;
|
return convertView;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void notifyDataSetChanged() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void notifyDataSetInvalidated() {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user