[m1-p-1.1.0] add status of cover

This commit is contained in:
zhongchao
2023-03-10 17:13:36 +08:00
parent 4b3b01919e
commit 91299cb6f4
4 changed files with 31 additions and 1 deletions

View File

@@ -202,6 +202,7 @@ open class MainActivity : MvpActivity<MainView?, MainPresenter?>(), MainView,
loadFunctionFragment()
// 设置地图样式
mogoMapListenerHandler.onMapModeChanged(EnumMapUI.MAP_STYLE_DAY_VR)
MogoStatusManager.getInstance().setScreenCoverMode(TAG,true)
}
i(
SceneConstant.M_HMI + TAG,

View File

@@ -43,6 +43,19 @@ public interface IMogoStatusManager extends IProvider {
*/
boolean isSocketOnLine();
/**
* 压屏是否消失
* @return
*/
boolean isScreenCoverDismiss();
/**
* 设置压屏 状态
* @param tag 业务类型
* @param mode true:消失false:存在
*/
void setScreenCoverMode(String tag, boolean mode);
/**
* 设置云端 socket 状态
* @param tag 业务类型

View File

@@ -20,6 +20,7 @@ public class MogoStatusManager implements IMogoStatusManager {
private static final byte[] obj = new byte[0];
private MogoStatusManager() {
}
public static MogoStatusManager getInstance() {
@@ -73,6 +74,16 @@ public class MogoStatusManager implements IMogoStatusManager {
return get_bool_val(StatusDescriptor.CLOUD_SOCKET);
}
@Override
public boolean isScreenCoverDismiss() {
return get_bool_val(StatusDescriptor.SCREEN_COVER);
}
@Override
public void setScreenCoverMode(String tag, boolean mode) {
doSetStatus(tag, StatusDescriptor.SCREEN_COVER, mode);
}
@Override
public void setCloudSocketMode(String tag, boolean mode) {
doSetStatus(tag, StatusDescriptor.CLOUD_SOCKET, mode);

View File

@@ -41,6 +41,11 @@ public enum StatusDescriptor {
/**
* 云 Socket状态
*/
CLOUD_SOCKET
CLOUD_SOCKET,
/**
* 压屏状态
*/
SCREEN_COVER
}