select uncategorized by default when subscribing (closes #760)

This commit is contained in:
Andrew Dolgov 2013-08-26 13:06:26 +04:00
parent 5a95900253
commit f89bdad904

View File

@ -224,7 +224,6 @@ public class SubscribeActivity extends CommonShareActivity {
final List<FeedCategory> cats = new Gson().fromJson(content, listType); final List<FeedCategory> cats = new Gson().fromJson(content, listType);
m_cats.clear(); m_cats.clear();
m_cats.add(new FeedCategory(0, "Uncategorized", 0));
for (FeedCategory c : cats) { for (FeedCategory c : cats) {
if (c.id > 0) if (c.id > 0)
@ -233,6 +232,8 @@ public class SubscribeActivity extends CommonShareActivity {
sortCats(); sortCats();
m_cats.add(0, new FeedCategory(0, "Uncategorized", 0));
m_adapter.notifyDataSetChanged(); m_adapter.notifyDataSetChanged();
toast(R.string.category_list_updated); toast(R.string.category_list_updated);