Skip to content

Commit

Permalink
Merge pull request #82 from qwert2603/patch-1
Browse files Browse the repository at this point in the history
Fix error in Router.java
  • Loading branch information
terrakok committed Oct 3, 2018
2 parents f03ea7f + e2a7493 commit 3da5127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/main/java/ru/terrakok/cicerone/Router.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void newRootChain(Screen... screens) {
commands[0] = new BackTo(null);
if (screens.length > 0) {
commands[1] = new Replace(screens[0]);
for (int i = 1; i < commands.length; i++) {
for (int i = 1; i < screens.length; i++) {
commands[i + 1] = new Forward(screens[i]);
}
}
Expand Down

0 comments on commit 3da5127

Please sign in to comment.