Fixed policy monitoring empty device list issue

revert-dabc3590
harshanl 9 years ago
parent b401d7f61e
commit cfb6464cbe

@ -46,7 +46,7 @@ public class AndroidPolicyMonitoringService implements PolicyMonitoringService {
@Override @Override
public void notifyDevices(List<Device> list) throws PolicyComplianceException { public void notifyDevices(List<Device> list) throws PolicyComplianceException {
GCMService gcmService = MobileDeviceManagementDataHolder.getInstance().getGCMService(); GCMService gcmService = MobileDeviceManagementDataHolder.getInstance().getGCMService();
if (gcmService.isGCMEnabled()) { if (gcmService.isGCMEnabled() && !list.isEmpty()) {
gcmService.sendNotification("POLICY_BUNDLE", list); gcmService.sendNotification("POLICY_BUNDLE", list);
} }
} }

Loading…
Cancel
Save