Skip to content

Commit

Permalink
Add back button to last child in setStackRoot
Browse files Browse the repository at this point in the history
This effectively reverts 96661e3 and fixes the issue properly.
  • Loading branch information
guyca committed Jun 27, 2019
1 parent 1f9734d commit 898cf7a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,12 @@ public void onSuccess(String childId) {
}
});
} else {
backButtonHelper.addToPushedChild(last(children));
push(last(children), new CommandListenerAdapter() {
@Override
public void onSuccess(String childId) {
destroyStack(stackToDestroy);
for (int i = 0; i < children.size(); i++) {
for (int i = 0; i < children.size() - 1; i++) {
stack.set(children.get(i).getId(), children.get(i), i);
children.get(i).setParentController(StackController.this);
if (i == 0) {
Expand Down

0 comments on commit 898cf7a

Please sign in to comment.