diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2012-01-19 13:54:14 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2012-01-19 13:54:14 +0300 |
| commit | 2f62378980fe821a62728a1a92d9e8b2bcba49e2 (patch) | |
| tree | 7f06e1e08cfb58bc8229c2291a72dde637e9fc35 /src/org/fox/ttrss/MainActivity.java | |
| parent | 288997831c1f60bdeb72b51010d14de7fa345acf (diff) | |
properly unmark previously active feed in feedlist when closing feed
Diffstat (limited to 'src/org/fox/ttrss/MainActivity.java')
| -rw-r--r-- | src/org/fox/ttrss/MainActivity.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index 0b475946..84ade258 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -799,6 +799,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices { .setVisibility(View.VISIBLE); findViewById(R.id.headlines_fragment).setVisibility( View.GONE); + refreshCategories(); } else { findViewById(R.id.feeds_fragment).setVisibility( @@ -808,6 +809,14 @@ public class MainActivity extends FragmentActivity implements OnlineServices { refreshFeeds(); } + + FeedsFragment ff = (FeedsFragment) getSupportFragmentManager() + .findFragmentById(R.id.feeds_fragment); + + if (ff != null) { + ff.setSelectedFeedId(0); + } + m_activeFeed = null; initMainMenu(); @@ -833,6 +842,13 @@ public class MainActivity extends FragmentActivity implements OnlineServices { findViewById(R.id.headlines_fragment).setVisibility( View.INVISIBLE); + FeedsFragment ff = (FeedsFragment) getSupportFragmentManager() + .findFragmentById(R.id.feeds_fragment); + + if (ff != null) { + ff.setSelectedFeedId(0); + } + m_activeFeed = null; refreshFeeds(); |