Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix the issue #23, about 'LoadToast leaking activities?'
  • Loading branch information
shaohui10086 committed Sep 20, 2016
commit 9bf787d4188160c00f6b0e2dbbaad3e29c24519a
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,11 @@ private int measureHeight(int measureSpec) {
return result;
}

@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();

if(cmp != null) cmp.removeAllUpdateListeners();
if(va != null) va.removeAllUpdateListeners();
}
}