Skip to content

Navigate back to the previous view #10

@nelo686

Description

@nelo686

More than an issue it is a doubt. Maybe it's too obvious, but I didn't get it right. I did a couple of tries to come back to the previous view, like:

ConceptRouter.get().back(context);

or

((StartActivity) context).onBackPressed();

or

ConceptRouter.get().routeTo(context, new Route(StartRoute.class, new Bundle()));

but I don't want to create a new view, I want to retrieve the one already exists.

By the way, also I put this in my activity

@Override
    public void onBackPressed() {
        if (!ConceptRouter.get().back(this))
            super.onBackPressed();
    }

But I don't know why, even when there is a view history, always goes into the if.

Can you help me?
Thxs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions