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