VideoView memory leak

后端 未结 4 1805
南笙
南笙 2020-12-21 03:56

Has any of you encountered a similar memory leak? This is how I\'m handling the VideoView at the moment

@Override
protected void onFinishInflate() {
    supe         


        
4条回答
  •  半阙折子戏
    2020-12-21 04:23

    When using ButterKnife with Fragments, you need to use the Unbinder in onDestroyView() to correctly dereference the Fragment's Views -- since Fragments have different life cycles to Activities.

    There is a related issue here.

提交回复
热议问题