在StatusManager设置TopView的显示状态监听

This commit is contained in:
tongchenfei
2020-10-20 14:26:41 +08:00
parent df5783820a
commit 76c73663e6
5 changed files with 37 additions and 3 deletions

View File

@@ -122,11 +122,21 @@ public class MogoStatusManager implements IMogoStatusManager {
return get_bool_val( StatusDescriptor.MAIN_PAGE_CREATED );
}
private boolean get_bool_val( StatusDescriptor descriptor ) {
@Override
public boolean isTopViewShow() {
return get_bool_val(StatusDescriptor.TOP_VIEW);
}
private boolean get_bool_val(StatusDescriptor descriptor ) {
Boolean val = mStatus.get( descriptor );
return val == null ? false : val;
}
@Override
public void setTopViewShow(String tag, boolean show) {
doSetStatus(tag, StatusDescriptor.TOP_VIEW, show);
}
@Override
public void setVoiceUIShow( String tag, boolean show ) {
doSetStatus( tag, StatusDescriptor.VOICE_UI, show );