Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cnw-fix-425 #427

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

cnw-fix-425 #427

wants to merge 2 commits into from

Conversation

chwalters
Copy link
Contributor

Proposed fix for #425. Reload history when main activity resumes

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 20.338% when pulling 963b7a1 on cnw-fix-425 into 2c3e350 on develop.

if (viewPager != null && homePagerAdapter != null) {
int currentPage = viewPager.getCurrentItem();
if (currentPage == 1) { // assumption - history tab is always position 1
HistoryFragment historyFragment = homePagerAdapter.getHistoryFragment();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can override onResume in the History fragment and reload data there. However, it is not a super great solution since it will happen also when the user locked the screen, the user opened another app, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants