From 80e4b9d32563a1a69b700fd0b4fb8d76a7723278 Mon Sep 17 00:00:00 2001 From: David-Development Date: Mon, 16 Jun 2014 12:39:24 +0200 Subject: [PATCH] Fix #232 --- .../luhmer/owncloudnewsreader/database/DatabaseConnection.java | 3 ++- README.md | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/DatabaseConnection.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/DatabaseConnection.java index acfd7b0d..67b6284e 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/DatabaseConnection.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/DatabaseConnection.java @@ -882,7 +882,8 @@ public class DatabaseConnection { try { for(RssFile item : items) { if(item != null) { - boolean isFeedAlreadyInDatabase = rssItems.contains(item.getItem_Id()); //doesRssItemAlreadyExsists(item.getItem_Id()); + Integer itemId = Integer.parseInt(item.getItem_Id()); + boolean isFeedAlreadyInDatabase = rssItems.contains(itemId); //doesRssItemAlreadyExsists(item.getItem_Id()); insertNewItem(item, !isFeedAlreadyInDatabase); } } diff --git a/README.md b/README.md index 905b8679..6da6d993 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,8 @@ Updates 0.6.8 (in development) --------------------- +- Bug fix - #232 Sync of already read items creates duplicate items + 0.6.7 (Google Play - Beta) ---------------------