@@ -1,9 +1,9 @@
|
||||
package com.mogo.eagle.core.function.hmi.warning
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.app.FragmentActivity
|
||||
import com.alibaba.android.arouter.facade.annotation.Route
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths
|
||||
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
|
||||
@@ -30,7 +30,7 @@ class MoGoWarningProvider : IMoGoWaringProvider {
|
||||
mContext = context
|
||||
}
|
||||
|
||||
override fun createCoverage(context: Context?, data: Bundle?): Fragment? {
|
||||
override fun createCoverage(activity: FragmentActivity?, containerId: Int?): Fragment? {
|
||||
Logger.d(TAG, "初始化蘑菇预警模块 Fragment……")
|
||||
mMoGoHmiFragment = MoGoHmiFragment()
|
||||
return mMoGoHmiFragment
|
||||
|
||||
@@ -137,7 +137,7 @@ public class SmallMapProvider implements IMogoSmallMapProvider, IMogoStatusChang
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Fragment createCoverage(@Nullable Context context, @Nullable Bundle data) {
|
||||
public Fragment createCoverage(@Nullable FragmentActivity activity, @Nullable Integer containerId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package com.mogo.eagle.core.function.api.base
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import androidx.annotation.IdRes
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.app.FragmentActivity
|
||||
import com.alibaba.android.arouter.facade.template.IProvider
|
||||
|
||||
/**
|
||||
@@ -15,10 +15,10 @@ interface IMoGoFunctionProvider : IProvider {
|
||||
/**
|
||||
* 创建图层,如果功能需要在HMI单独创建新的图层才需要实现
|
||||
*
|
||||
* @param context 上下文
|
||||
* @param activity 上下文
|
||||
* @return 图层Fragment
|
||||
*/
|
||||
fun createCoverage(context: Context?, data: Bundle?): Fragment?
|
||||
fun createCoverage(activity: FragmentActivity?, @IdRes containerId: Int?): Fragment?
|
||||
|
||||
/**
|
||||
* 功能模块唯一标识
|
||||
|
||||
Reference in New Issue
Block a user