Correcting wrong logic for retrieving apps in appm

revert-dabc3590
Ace 7 years ago
parent f7fc300b21
commit 8f6b65946a

@ -256,11 +256,15 @@ public class ApplicationOperationsImpl implements ApplicationOperations {
.getDeviceManagementService(applicationOperationDevice.getTenantId()). .getDeviceManagementService(applicationOperationDevice.getTenantId()).
getDevicesOfUser(applicationOperationDevice.getCurrentUser().getUsername()); getDevicesOfUser(applicationOperationDevice.getCurrentUser().getUsername());
} else { } else {
deviceList = MDMServiceAPIUtils deviceList = MDMServiceAPIUtils
.getDeviceManagementService(applicationOperationDevice.getTenantId()). .getDeviceManagementService(applicationOperationDevice.getTenantId()).
getDevicesOfUser(applicationOperationDevice.getCurrentUser().getUsername(), getDevicesOfUser(applicationOperationDevice.getCurrentUser().getUsername(),
applicationOperationDevice.getPlatform()); MDMAppConstants.ANDROID);
} deviceList.addAll(MDMServiceAPIUtils
.getDeviceManagementService(applicationOperationDevice.getTenantId()).
getDevicesOfUser(applicationOperationDevice.getCurrentUser().getUsername(),
MDMAppConstants.IOS));
}
devices = new ArrayList<>(deviceList.size()); devices = new ArrayList<>(deviceList.size());
if(log.isDebugEnabled()){ if(log.isDebugEnabled()){
log.debug("device list got from mdm "+ deviceList.toString()); log.debug("device list got from mdm "+ deviceList.toString());

Loading…
Cancel
Save