解决内存泄漏问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user