updated android featuremgr

revert-dabc3590
harshanl 9 years ago
parent 69269d50ee
commit 1aee8edace

@ -65,7 +65,7 @@ public class AndroidFeatureManager implements FeatureManager {
@Override @Override
public boolean addFeatures(List<Feature> features) throws DeviceManagementException { public boolean addFeatures(List<Feature> features) throws DeviceManagementException {
List<MobileFeature> mobileFeatures = new ArrayList<MobileFeature>(); List<MobileFeature> mobileFeatures = new ArrayList<MobileFeature>();
for (Feature feature:features) { for (Feature feature : features) {
mobileFeatures.add(MobileDeviceManagementUtil.convertToMobileFeature(feature)); mobileFeatures.add(MobileDeviceManagementUtil.convertToMobileFeature(feature));
} }
try { try {
@ -135,8 +135,11 @@ public class AndroidFeatureManager implements FeatureManager {
List<Feature> existingFeatures = this.getFeatures(); List<Feature> existingFeatures = this.getFeatures();
List<Feature> missingFeatures = MobileDeviceManagementUtil. List<Feature> missingFeatures = MobileDeviceManagementUtil.
getMissingFeatures(supportedFeatures, existingFeatures); getMissingFeatures(supportedFeatures, existingFeatures);
if (missingFeatures.size() > 0) {
return this.addFeatures(missingFeatures); return this.addFeatures(missingFeatures);
} }
return true;
}
} }
//Get the supported feature list. //Get the supported feature list.

Loading…
Cancel
Save