解决内存泄漏问题

This commit is contained in:
wangcongtao
2021-01-13 10:25:31 +08:00
parent 11a8367a5e
commit a9741f0ff1

View File

@@ -26,11 +26,9 @@ import com.mogo.service.module.ModuleType;
@Route( path = MogoModulePaths.PATH_MODULE_MAP )
public class MapFragmentProvider implements IMogoModuleProvider {
private MapFragment mMapFragment;
@Override
public Fragment createFragment( Context context, Bundle data ) {
mMapFragment = new MapFragment();
MapFragment mMapFragment = new MapFragment();
mMapFragment.setArguments( data );
return mMapFragment;
}
@@ -94,6 +92,5 @@ public class MapFragmentProvider implements IMogoModuleProvider {
@Override
public void onDestroy() {
mMapFragment = null;
}
}