Improve app uninstalling response handeling

revert-dabc3590
lasanthaDLPDS 5 years ago
parent c938757ff6
commit 92adedcd8d

@ -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