diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2012-06-19 19:01:28 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2012-06-19 19:01:28 +0400 |
| commit | 10eb94abe5f4cc90339b708000b3fbe56ae101c0 (patch) | |
| tree | 2cc50cf5686fc27a551a581f06371f27fdfa4ae8 /src/org/fox/ttrss/MainActivity.java | |
| parent | 4795f259f05145590b38a53679192748ebdc8a86 (diff) | |
store feed/category objects inside fragments instead of ids
Diffstat (limited to 'src/org/fox/ttrss/MainActivity.java')
| -rw-r--r-- | src/org/fox/ttrss/MainActivity.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index 3a51096a..64180369 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -771,8 +771,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices { .findFragmentById(R.id.cats_fragment); if (cf != null) { - // should be nonexistant feed_id (0 is Uncategorized) - cf.setSelectedCategoryId(-10000); + cf.setSelectedCategory(null); } initMainMenu(); @@ -818,8 +817,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices { .findFragmentById(R.id.cats_fragment); if (cf != null) { - // can't use 0 here because Uncategorized might be in the buffer - cf.setSelectedCategoryId(-1000000); + cf.setSelectedCategory(null); } refreshCategories(); @@ -840,7 +838,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices { .findFragmentById(R.id.feeds_fragment); if (ff != null) { - ff.setSelectedFeedId(0); + ff.setSelectedFeed(null); } m_activeFeed = null; @@ -872,7 +870,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices { .findFragmentById(R.id.feeds_fragment); if (ff != null) { - ff.setSelectedFeedId(0); + ff.setSelectedFeed(null); } m_activeFeed = null; @@ -881,7 +879,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices { ft.replace(R.id.headlines_fragment, new HeadlinesFragment()); ft.commit(); - refreshFeeds(); + refreshFeeds(); initMainMenu(); } else if (allowQuit) { |