From f89bdad90455b15b2fc3ea776a7ebfbea62836aa Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 26 Aug 2013 13:06:26 +0400 Subject: [PATCH] select uncategorized by default when subscribing (closes #760) --- src/org/fox/ttrss/share/SubscribeActivity.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/org/fox/ttrss/share/SubscribeActivity.java b/src/org/fox/ttrss/share/SubscribeActivity.java index d37e8818..bed173a2 100644 --- a/src/org/fox/ttrss/share/SubscribeActivity.java +++ b/src/org/fox/ttrss/share/SubscribeActivity.java @@ -224,8 +224,7 @@ public class SubscribeActivity extends CommonShareActivity { final List cats = new Gson().fromJson(content, listType); m_cats.clear(); - m_cats.add(new FeedCategory(0, "Uncategorized", 0)); - + for (FeedCategory c : cats) { if (c.id > 0) m_cats.add(c); @@ -233,8 +232,10 @@ public class SubscribeActivity extends CommonShareActivity { sortCats(); - m_adapter.notifyDataSetChanged(); + m_cats.add(0, new FeedCategory(0, "Uncategorized", 0)); + m_adapter.notifyDataSetChanged(); + toast(R.string.category_list_updated); } }