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

Basefragments navigation #20

Closed
VictorHVS opened this issue Jun 28, 2016 · 1 comment
Closed

Basefragments navigation #20

VictorHVS opened this issue Jun 28, 2016 · 1 comment
Assignees
Labels

Comments

@VictorHVS
Copy link

How do I navigate through the basefragments using onBackPressed without closing the BottomActivity?

@ncapdevi ncapdevi self-assigned this Nov 20, 2016
@ncapdevi
Copy link
Owner

In your activity, you need to override onBackPressed

    @Override
    public void onBackPressed() {
        if (mNavController.getCurrentStack().size() > 1) {
            mNavController.pop();
        } else {
            super.onBackPressed();
        }
    }

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

No branches or pull requests

2 participants