opt
This commit is contained in:
@@ -105,6 +105,11 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
return get_bool_val( StatusDescriptor.SEEK_HELPING );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDisplayOverview() {
|
||||
return get_bool_val( StatusDescriptor.DISPLAY_OVERVIEW );
|
||||
}
|
||||
|
||||
private boolean get_bool_val( StatusDescriptor descriptor ) {
|
||||
Boolean val = mStatus.get( descriptor );
|
||||
return val == null ? false : val;
|
||||
@@ -190,6 +195,13 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
recordStatusModifier( tag, StatusDescriptor.SEEK_HELPING );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDisplayOverview( String tag, boolean display ) {
|
||||
mStatus.put( StatusDescriptor.DISPLAY_OVERVIEW, display );
|
||||
invokeStatusChangedListener( StatusDescriptor.DISPLAY_OVERVIEW, display );
|
||||
recordStatusModifier( tag, StatusDescriptor.DISPLAY_OVERVIEW );
|
||||
}
|
||||
|
||||
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