caller调用notice ui

This commit is contained in:
liujing
2021-10-29 17:40:03 +08:00
parent e966c92f19
commit eec497158d
6 changed files with 35 additions and 39 deletions

View File

@@ -11,6 +11,8 @@ import com.mogo.eagle.core.function.hmi.WaringConst
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
import com.mogo.eagle.core.data.constants.MogoServicePaths
import com.mogo.eagle.core.data.notice.NoticeNormalData
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData
import com.mogo.utils.logger.Logger
/**
@@ -89,6 +91,14 @@ class MoGoWarningProvider : IMoGoWaringProvider {
mMoGoHmiFragment?.showWarning(direction, closeTime)
}
override fun showNoticeForTrafficWithData(pushData: NoticeTrafficStylePushData?) {
TODO("Not yet implemented")
}
override fun showNoticeNormalData(normalData: NoticeNormalData?) {
TODO("Not yet implemented")
}
override fun onDestroy() {
Log.d(TAG, "onDestroy")
}

View File

@@ -56,7 +56,6 @@ dependencies {
implementation rootProject.ext.dependencies.mogocommons
implementation rootProject.ext.dependencies.mogoserviceapi
implementation rootProject.ext.dependencies.modulecommon
implementation rootProject.ext.dependencies.moduleHmi
} else {
implementation project(":foudations:mogo-commons")
implementation project(':services:mogo-service-api')
@@ -67,7 +66,6 @@ dependencies {
implementation project(':core:mogo-core-res')
implementation project(':core:mogo-core-data')
implementation project(':core:mogo-core-network')
implementation project(':core:function-impl:mogo-core-function-hmi')
}
}

View File

@@ -8,10 +8,7 @@ import androidx.fragment.app.Fragment;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.mogo.eagle.core.data.constants.MogoServicePaths;
import com.mogo.eagle.core.data.notice.NoticeNormalData;
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData;
import com.mogo.eagle.core.function.api.notice.IMoGoNoticeProvider;
import com.mogo.eagle.core.function.hmi.ui.MoGoHmiFragment;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -26,13 +23,11 @@ import org.jetbrains.annotations.Nullable;
public class NoticeProvider implements IMoGoNoticeProvider {
private String TAG = "AINotice";
private Context mContext;
private MoGoHmiFragment mMoGoHmiFragment;
@Nullable
@Override
public Fragment createCoverage(@Nullable Context context, @Nullable Bundle data) {
mMoGoHmiFragment = new MoGoHmiFragment();
return mMoGoHmiFragment;
return null;
}
@NotNull
@@ -53,13 +48,4 @@ public class NoticeProvider implements IMoGoNoticeProvider {
NoticeSocketManager.getInstance().registerSocketMessageListener(context);
}
@Override
public void showNoticeForTrafficWithData(NoticeTrafficStylePushData pushData) {
mMoGoHmiFragment.showNoticeForTrafficWithData(pushData);
}
@Override
public void showNoticeNormalData(NoticeNormalData normalData) {
}
}