opt: cpu
This commit is contained in:
@@ -84,6 +84,11 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
return get_bool_val( StatusDescriptor.SEARCH_UI );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAppListUIShow() {
|
||||
return get_bool_val( StatusDescriptor.APP_LIST_UI );
|
||||
}
|
||||
|
||||
private boolean get_bool_val( StatusDescriptor descriptor ) {
|
||||
Boolean val = mStatus.get( descriptor );
|
||||
return val == null ? false : val;
|
||||
@@ -141,6 +146,13 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
recordStatusModifier( tag, StatusDescriptor.SEARCH_UI );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAppListUIShow( String tag, boolean isShow ) {
|
||||
mStatus.put( StatusDescriptor.APP_LIST_UI, isShow );
|
||||
invokeStatusChangedListener( StatusDescriptor.APP_LIST_UI, isShow );
|
||||
recordStatusModifier( tag, StatusDescriptor.APP_LIST_UI );
|
||||
}
|
||||
|
||||
private void invokeStatusChangedListener( StatusDescriptor descriptor, boolean status ) {
|
||||
if ( mListeners.containsKey( descriptor ) ) {
|
||||
Iterator< IMogoStatusChangedListener > iterator = mListeners.get( descriptor ).iterator();
|
||||
|
||||
Reference in New Issue
Block a user