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,8 +224,7 @@ public class SubscribeActivity extends CommonShareActivity {
final List<FeedCategory> 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);
}
}