summaryrefslogtreecommitdiff
path: root/src/org/fox/ttrss/MainActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/fox/ttrss/MainActivity.java')
-rw-r--r--src/org/fox/ttrss/MainActivity.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java
index e67562df..c79f16f4 100644
--- a/src/org/fox/ttrss/MainActivity.java
+++ b/src/org/fox/ttrss/MainActivity.java
@@ -100,7 +100,7 @@ public class MainActivity extends Activity {
FeedsFragment frag = new FeedsFragment();
ft.setCustomAnimations(android.R.animator.fade_in, android.R.animator.fade_out);
- ft.replace(R.id.feeds_container, frag);
+ ft.replace(R.id.feeds_container, frag, "FEEDLIST");
ft.commit();
m_feedsOpened = true;
@@ -210,8 +210,8 @@ public class MainActivity extends Activity {
stmtInsert.bindString(7, article.title);
stmtInsert.bindString(8, article.link);
stmtInsert.bindLong(9, article.feed_id);
- stmtInsert.bindString(9, ""); // comma-separated tags
- stmtInsert.bindString(10, article.content);
+ stmtInsert.bindString(10, ""); // comma-separated tags
+ stmtInsert.bindString(11, article.content);
stmtInsert.execute();
}
@@ -221,6 +221,13 @@ public class MainActivity extends Activity {
db.close();
+ FeedsFragment ff = (FeedsFragment) getFragmentManager().findFragmentByTag("FEEDLIST");
+
+ if (ff != null) {
+ ff.m_cursor.requery();
+ ff.m_adapter.notifyDataSetChanged();
+ }
+
Log.d(TAG, articlesFound + " articles processed");
if (articlesFound == m_limit && m_offset <= 300) {