updated android featuremgr

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

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

Loading…
Cancel
Save