修复语音小智也走主页面的生命周期,导致会关闭EventPanel的问题

This commit is contained in:
董宏宇
2020-11-23 17:10:21 +08:00
parent 6eb97f55e7
commit 673abf4fc8
6 changed files with 99 additions and 146 deletions

View File

@@ -81,6 +81,13 @@ public interface IMogoStatusManager extends IProvider {
*/
boolean isMainPageOnResume();
/**
* 主页是否在后台运行
*
* @return true-在后台false-不在后台
*/
boolean isMainPageIsBackground();
/**
* 小智语音是否准备完毕
*
@@ -208,6 +215,14 @@ public interface IMogoStatusManager extends IProvider {
*/
void setMainPageResumeStatus( String tag, boolean resume );
/**
* 主页 后台运行 状态
*
* @param tag 控制来源
* @param isBackground true-在后台运行false-不在后台运行(也可能是挂了)
*/
void setMainPageIsBackgroundStatus( String tag, boolean isBackground );
/**
* 设置小智语音状态
*

View File

@@ -55,6 +55,11 @@ public enum StatusDescriptor {
*/
MAIN_PAGE_RESUME,
/**
* 主页 isBackground 状态
*/
MAIN_PAGE_IS_BACKGROUND,
/**
* 小智语音状态
*/