修复语音小智也走主页面的生命周期,导致会关闭EventPanel的问题
This commit is contained in:
@@ -96,6 +96,11 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
return get_bool_val( StatusDescriptor.MAIN_PAGE_RESUME );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isMainPageIsBackground() {
|
||||
return get_bool_val( StatusDescriptor.MAIN_PAGE_IS_BACKGROUND );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAIAssistReady() {
|
||||
return get_bool_val( StatusDescriptor.AI_ASSIST_READY );
|
||||
@@ -199,6 +204,13 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
Logger.i( TAG, "setMainPageResumeStatus " + resume + " cost " + ( System.currentTimeMillis() - start ) + "ms" );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setMainPageIsBackgroundStatus(String tag, boolean isBackground) {
|
||||
final long start = System.currentTimeMillis();
|
||||
doSetStatus( tag, StatusDescriptor.MAIN_PAGE_IS_BACKGROUND, isBackground );
|
||||
Logger.i( TAG, "setMainPageIsBackgroundStatus " + isBackground + " cost " + ( System.currentTimeMillis() - start ) + "ms" );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAIAssistReady( String tag, boolean ready ) {
|
||||
doSetStatus( tag, StatusDescriptor.AI_ASSIST_READY, ready );
|
||||
|
||||
Reference in New Issue
Block a user