在StatusManager设置TopView的显示状态监听
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user