221222223224225226227228229230231
if (pause) { if (serviceName == null) { sm.pauseAllActiveServices(ServiceType.NORMAL, true); } else { sm.pauseService(serviceName, true); } } else { if (serviceName == null) { sm.resumeAllActiveServices(ServiceType.NORMAL); } else {