diff --git a/app/src/main/java/dummydomain/yetanothercallblocker/sia/model/database/CommunityDatabase.java b/app/src/main/java/dummydomain/yetanothercallblocker/sia/model/database/CommunityDatabase.java index cf6c51f..575eaa9 100644 --- a/app/src/main/java/dummydomain/yetanothercallblocker/sia/model/database/CommunityDatabase.java +++ b/app/src/main/java/dummydomain/yetanothercallblocker/sia/model/database/CommunityDatabase.java @@ -156,7 +156,7 @@ public class CommunityDatabase extends AbstractDatabase 1) { - int sliceId = Integer.valueOf(numberString.substring(0, 2)); + int sliceId = Integer.parseInt(numberString.substring(0, 2)); shortSliceIdToIndexMap.get(sliceId).add(i); } } for (int i = 0; i < numbersToDelete.length; i++) { String numberString = String.valueOf(numbersToDelete[i]); if (numberString.length() > 1) { - int sliceId = Integer.valueOf(numberString.substring(0, 2)); + int sliceId = Integer.parseInt(numberString.substring(0, 2)); shortSliceIdToIndexToDeleteMap.get(sliceId).add(i); } }