bugfix: clear cache views in onDestroy. #624

This commit is contained in:
cgspine
2019-06-18 15:41:03 +08:00
parent 51a25bc48e
commit bfe00a9b2d
@@ -934,6 +934,13 @@ public abstract class QMUIFragment extends Fragment implements QMUIFragmentLazyL
mSwipeBackgroundView.unBind();
mSwipeBackgroundView = null;
}
// help gc, sometimes user may hold fragment instance in somewhere,
// then these objects can not be released in time.
mCacheSwipeBackLayout = null;
mCacheRootView = null;
mDelayRenderRunnableList = null;
mCheckPostResumeRunnable = null;
}
@Override