解决内存泄漏

一:写p层的方法

//解耦
public void datach(){
   if (shopView != null){
        shopView = null;
    }
}

二:主页面的方法

@Override
public void onDestroy() {
    super.onDestroy();
    if (shopPresenter != null){
        shopPresenter.datach();
    }
}

猜你喜欢

转载自blog.csdn.net/gylgww/article/details/83384461