Navigate back to the previous view
- Dominant language
- Java
- Stars
- 29
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.