opt
This commit is contained in:
@@ -8,7 +8,6 @@ import com.mogo.service.MogoServicePaths;
|
||||
import com.mogo.service.statusmanager.IMogoStatusChangedListener;
|
||||
import com.mogo.service.statusmanager.IMogoStatusManager;
|
||||
import com.mogo.service.statusmanager.StatusDescriptor;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
@@ -79,35 +78,35 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
public void setVoiceUIShow( String tag, boolean show ) {
|
||||
mStatus.put( StatusDescriptor.VOICE_UI, show );
|
||||
invokeStatusChangedListener( StatusDescriptor.VOICE_UI, show );
|
||||
recorderStatusModifier( tag, StatusDescriptor.VOICE_UI );
|
||||
recordStatusModifier( tag, StatusDescriptor.VOICE_UI );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setADASUIShow( String tag, boolean show ) {
|
||||
mStatus.put( StatusDescriptor.ADAS_UI, show );
|
||||
invokeStatusChangedListener( StatusDescriptor.ADAS_UI, show );
|
||||
recorderStatusModifier( tag, StatusDescriptor.ADAS_UI );
|
||||
recordStatusModifier( tag, StatusDescriptor.ADAS_UI );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setV2XUIShow( String tag, boolean show ) {
|
||||
mStatus.put( StatusDescriptor.V2X_UI, show );
|
||||
invokeStatusChangedListener( StatusDescriptor.V2X_UI, show );
|
||||
recorderStatusModifier( tag, StatusDescriptor.V2X_UI );
|
||||
recordStatusModifier( tag, StatusDescriptor.V2X_UI );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPushUIShow( String tag, boolean show ) {
|
||||
mStatus.put( StatusDescriptor.PUSH_UI, show );
|
||||
invokeStatusChangedListener( StatusDescriptor.PUSH_UI, show );
|
||||
recorderStatusModifier( tag, StatusDescriptor.PUSH_UI );
|
||||
recordStatusModifier( tag, StatusDescriptor.PUSH_UI );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAccStatus( String tag, boolean isOn ) {
|
||||
mStatus.put( StatusDescriptor.ACC_STATUS, isOn );
|
||||
invokeStatusChangedListener( StatusDescriptor.ACC_STATUS, isOn );
|
||||
recorderStatusModifier( tag, StatusDescriptor.ACC_STATUS );
|
||||
recordStatusModifier( tag, StatusDescriptor.ACC_STATUS );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -116,7 +115,14 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
if ( callback ) {
|
||||
invokeStatusChangedListener( StatusDescriptor.USER_INTERACTED, interrupt );
|
||||
}
|
||||
recorderStatusModifier( tag, StatusDescriptor.USER_INTERACTED );
|
||||
recordStatusModifier( tag, StatusDescriptor.USER_INTERACTED );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSearchUIShow( String tag, boolean isShow ) {
|
||||
mStatus.put( StatusDescriptor.SEARCH_UI, isShow );
|
||||
invokeStatusChangedListener( StatusDescriptor.SEARCH_UI, isShow );
|
||||
recordStatusModifier( tag, StatusDescriptor.SEARCH_UI );
|
||||
}
|
||||
|
||||
private void invokeStatusChangedListener( StatusDescriptor descriptor, boolean status ) {
|
||||
@@ -131,7 +137,7 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
}
|
||||
}
|
||||
|
||||
private void recorderStatusModifier( String tag, StatusDescriptor descriptor ) {
|
||||
private void recordStatusModifier( String tag, StatusDescriptor descriptor ) {
|
||||
mModifier.put( descriptor, tag );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user