mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'application-mgt-new' into 'application-mgt-new'
Fix app installing issue in multiple times See merge request entgra/carbon-device-mgt!327
This commit is contained in:
commit
a758050660
@ -446,12 +446,11 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
||||
DeviceIdentifier deviceIdentifier = new DeviceIdentifier(device.getDeviceIdentifier(), device.getType());
|
||||
DeviceSubscriptionDTO deviceSubscriptionDTO = deviceSubscriptions.get(device.getId());
|
||||
if (deviceSubscriptionDTO != null) {
|
||||
if (deviceSubscriptionDTO.isUnsubscribed()) {
|
||||
appReInstallableDevices.put(deviceIdentifier, device.getId());
|
||||
}
|
||||
if (!deviceSubscriptionDTO.isUnsubscribed() && Operation.Status.COMPLETED.toString()
|
||||
.equals(deviceSubscriptionDTO.getStatus())) {
|
||||
appInstalledDevices.put(deviceIdentifier, device.getId());
|
||||
} else {
|
||||
appReInstallableDevices.put(deviceIdentifier, device.getId());
|
||||
}
|
||||
} else {
|
||||
appInstallableDevices.put(deviceIdentifier, device.getId());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user