properly unmark previously active feed in feedlist when closing feed
This commit is contained in:
parent
288997831c
commit
2f62378980
@ -550,4 +550,9 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setSelectedFeedId(int feedId) {
|
||||||
|
m_selectedFeedId = feedId;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -799,6 +799,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
.setVisibility(View.VISIBLE);
|
.setVisibility(View.VISIBLE);
|
||||||
findViewById(R.id.headlines_fragment).setVisibility(
|
findViewById(R.id.headlines_fragment).setVisibility(
|
||||||
View.GONE);
|
View.GONE);
|
||||||
|
|
||||||
refreshCategories();
|
refreshCategories();
|
||||||
} else {
|
} else {
|
||||||
findViewById(R.id.feeds_fragment).setVisibility(
|
findViewById(R.id.feeds_fragment).setVisibility(
|
||||||
@ -808,6 +809,14 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
|
|
||||||
refreshFeeds();
|
refreshFeeds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FeedsFragment ff = (FeedsFragment) getSupportFragmentManager()
|
||||||
|
.findFragmentById(R.id.feeds_fragment);
|
||||||
|
|
||||||
|
if (ff != null) {
|
||||||
|
ff.setSelectedFeedId(0);
|
||||||
|
}
|
||||||
|
|
||||||
m_activeFeed = null;
|
m_activeFeed = null;
|
||||||
|
|
||||||
initMainMenu();
|
initMainMenu();
|
||||||
@ -833,6 +842,13 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
findViewById(R.id.headlines_fragment).setVisibility(
|
findViewById(R.id.headlines_fragment).setVisibility(
|
||||||
View.INVISIBLE);
|
View.INVISIBLE);
|
||||||
|
|
||||||
|
FeedsFragment ff = (FeedsFragment) getSupportFragmentManager()
|
||||||
|
.findFragmentById(R.id.feeds_fragment);
|
||||||
|
|
||||||
|
if (ff != null) {
|
||||||
|
ff.setSelectedFeedId(0);
|
||||||
|
}
|
||||||
|
|
||||||
m_activeFeed = null;
|
m_activeFeed = null;
|
||||||
|
|
||||||
refreshFeeds();
|
refreshFeeds();
|
||||||
|
Loading…
Reference in New Issue
Block a user