diff --git a/app/src/main/java/com/example/cosmosclient/services/CosmosBackgroundService.java b/app/src/main/java/com/example/cosmosclient/services/CosmosBackgroundService.java index 004a50a..3ff44f4 100644 --- a/app/src/main/java/com/example/cosmosclient/services/CosmosBackgroundService.java +++ b/app/src/main/java/com/example/cosmosclient/services/CosmosBackgroundService.java @@ -446,7 +446,7 @@ //notificationを作成 Notification notification = new Notification(groups.get(i).getRequestList().getRequests().get(j),groups.get(i),null); //指定したkey(業番)を持っているHashMapがなければ作成する。 - if(codeToNotification.get(groups.get(i).getRequestList().getRequests().get(j))==null){ + if(codeToNotification.get(groups.get(i).getRequestList().getRequests().get(j).getLocation())==null){ notifications.add(notification); codeToNotification.put(groups.get(i).getRequestList().getRequests().get(j).getLocation(),notifications); }else{