Fix android web app deploying issue

merge-requests/120/head
lasanthaDLPDS 5 years ago
parent f4d5a7d04d
commit 01cc7edeff

@ -282,8 +282,11 @@ public class AndroidEnterpriseUtils {
if (productListResponse != null && productListResponse.getProduct() != null
&& !productListResponse.getProduct().isEmpty()) {
List<String> packageNamesOfApps = productListResponse.getProduct().stream()
.map(product -> (product.getProductId().replaceFirst("app:", ""))).collect(Collectors.toList());
List<String> packageNamesOfApps = new ArrayList<>();
for (Product product1 : productListResponse.getProduct()) {
String s = (product1.getProductId().replaceFirst("app:", ""));
packageNamesOfApps.add(s);
}
List<Application> existingApps = applicationManager.getApplications(packageNamesOfApps);
List<Product> products = productListResponse.getProduct();

Loading…
Cancel
Save