删除小地图中没必要的依赖关系

This commit is contained in:
董宏宇
2021-08-30 18:37:25 +08:00
parent fd255a9e88
commit 8fd7ea31be
3 changed files with 4 additions and 7 deletions

View File

@@ -51,9 +51,6 @@ dependencies {
api rootProject.ext.dependencies.mogoserviceapi
implementation rootProject.ext.dependencies.modulecommon
} else {
api project(":libraries:mogo-map")
api project(":libraries:mogo-map-api")
api project(":foudations:mogo-utils")
api project(":foudations:mogo-commons")
api project(':services:mogo-service-api')
implementation project(':modules:mogo-module-common')

View File

@@ -13,7 +13,6 @@ import com.mogo.service.adas.IMogoAdasRouteCallBack;
import com.mogo.service.smp.IMogoSmallMapProvider;
import com.mogo.service.statusmanager.IMogoStatusChangedListener;
import com.mogo.service.statusmanager.StatusDescriptor;
import com.mogo.utils.logger.Logger;
import java.util.List;
@@ -67,12 +66,12 @@ public class SmallMapProvider implements IMogoSmallMapProvider, IMogoStatusChang
Log.d(TAG, "小地图模块触发展示……");
try {
if (mSmallMapFragment == null) {
Logger.d(TAG, "准备add fragment======");
Log.d(TAG, "准备add fragment======");
mSmallMapFragment = new SmallMapFragment();
mActivity.getSupportFragmentManager().beginTransaction().add(mContainerId, mSmallMapFragment).commitAllowingStateLoss();
return;
}
Logger.d(TAG, "准备show fragment");
Log.d(TAG, "准备show fragment");
mActivity.getSupportFragmentManager().beginTransaction().show(mSmallMapFragment).commitAllowingStateLoss();
} catch (Exception e) {
e.printStackTrace();
@@ -84,7 +83,7 @@ public class SmallMapProvider implements IMogoSmallMapProvider, IMogoStatusChang
Log.d(TAG, "小地图模块触发隐藏……");
try {
if (mSmallMapFragment != null) {
Logger.d(TAG, "准备hide fragment");
Log.d(TAG, "准备hide fragment");
mActivity.getSupportFragmentManager().beginTransaction().hide(mSmallMapFragment).commitAllowingStateLoss();
}
} catch (Exception e) {