From 92adedcd8d44bf2c470cd14a4265eea6b6ea718c Mon Sep 17 00:00:00 2001 From: lasanthaDLPDS Date: Sat, 19 Oct 2019 11:02:31 +0530 Subject: [PATCH] Improve app uninstalling response handeling --- .../carbon/mdm/services/android/util/AndroidDeviceUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidDeviceUtils.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidDeviceUtils.java index b3a2727119..f7ca29855f 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidDeviceUtils.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidDeviceUtils.java @@ -248,7 +248,8 @@ public class AndroidDeviceUtils { } catch (DeviceDetailsMgtException 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 { updateAppSubStatus(deviceIdentifier, operation.getId(), operation.getStatus().toString()); } catch (org.wso2.carbon.device.application.mgt.common.exception.ApplicationManagementException e) {