зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1210243
- Cleanup click handlers in Fragments/Panels r=margaret
This commit is contained in:
Родитель
05dd36077b
Коммит
fadd9365c6
|
@ -237,6 +237,14 @@ public class HistoryPanel extends HomeFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
|
|
||||||
|
// Discard any additional item clicks on the list as the
|
||||||
|
// panel is getting destroyed (bug 1210243).
|
||||||
|
if (mRangeList != null) {
|
||||||
|
mRangeList.setOnItemClickListener(null);
|
||||||
|
}
|
||||||
|
mList.setOnItemClickListener(null);
|
||||||
|
|
||||||
mRangeList = null;
|
mRangeList = null;
|
||||||
mList = null;
|
mList = null;
|
||||||
mEmptyView = null;
|
mEmptyView = null;
|
||||||
|
|
|
@ -125,6 +125,11 @@ public class ReadingListPanel extends HomeFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
|
|
||||||
|
// Discard any additional item clicks on the list as the
|
||||||
|
// panel is getting destroyed (bug 1210243).
|
||||||
|
mList.setOnItemClickListener(null);
|
||||||
|
|
||||||
mList = null;
|
mList = null;
|
||||||
mTopView = null;
|
mTopView = null;
|
||||||
mEmptyView = null;
|
mEmptyView = null;
|
||||||
|
|
|
@ -166,6 +166,11 @@ public class RecentTabsPanel extends HomeFragment
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
|
|
||||||
|
// Discard any additional item clicks on the list as the
|
||||||
|
// panel is getting destroyed (bug 1210243).
|
||||||
|
mList.setOnItemClickListener(null);
|
||||||
|
|
||||||
mList = null;
|
mList = null;
|
||||||
mEmptyView = null;
|
mEmptyView = null;
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,12 @@ public class RemoteTabsExpandableListFragment extends RemoteTabsBaseFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
|
|
||||||
|
// Discard any additional item clicks on the list as the
|
||||||
|
// panel is getting destroyed (bug 1210243).
|
||||||
|
mList.setOnChildClickListener(null);
|
||||||
|
mList.setOnGroupClickListener(null);
|
||||||
|
|
||||||
mList = null;
|
mList = null;
|
||||||
mEmptyView = null;
|
mEmptyView = null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,6 +140,12 @@ public class RemoteTabsSplitPlaneFragment extends RemoteTabsBaseFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
|
|
||||||
|
// Discard any additional item clicks on the list as the
|
||||||
|
// panel is getting destroyed (bug 1210243).
|
||||||
|
mClientList.setOnItemClickListener(null);
|
||||||
|
mTabList.setOnItemClickListener(null);
|
||||||
|
|
||||||
mClientList = null;
|
mClientList = null;
|
||||||
mTabList = null;
|
mTabList = null;
|
||||||
mEmptyView = null;
|
mEmptyView = null;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче