Merge branch 'application-mgt-new' into 'application-mgt-new'

Improve app uninstalling response handling

See merge request entgra/carbon-device-mgt-plugins!100
revert-dabc3590
Inosh Perara 5 years ago
commit 9c4e101bb7

@ -248,7 +248,8 @@ public class AndroidDeviceUtils {
} catch (DeviceDetailsMgtException e) { } catch (DeviceDetailsMgtException e) {
throw new OperationManagementException("Error occurred while updating the device location.", e); throw new OperationManagementException("Error occurred while updating the device location.", e);
} }
} else if (AndroidConstants.OperationCodes.INSTALL_APPLICATION.equals(operation.getCode())) { } else if (AndroidConstants.OperationCodes.INSTALL_APPLICATION.equals(operation.getCode())
|| AndroidConstants.OperationCodes.UNINSTALL_APPLICATION.equals(operation.getCode())) {
try { try {
updateAppSubStatus(deviceIdentifier, operation.getId(), operation.getStatus().toString()); updateAppSubStatus(deviceIdentifier, operation.getId(), operation.getStatus().toString());
} catch (org.wso2.carbon.device.application.mgt.common.exception.ApplicationManagementException e) { } catch (org.wso2.carbon.device.application.mgt.common.exception.ApplicationManagementException e) {

Loading…
Cancel
Save