소스 검색

Fix missing back button in last component on setStackRoot (#5240)

Yogev Ben David 5 년 전
부모
커밋
96661e3308
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/StackController.java

+ 1
- 1
lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/StackController.java 파일 보기

@@ -198,7 +198,7 @@ public class StackController extends ParentController<StackLayout> {
198 198
                 @Override
199 199
                 public void onSuccess(String childId) {
200 200
                     destroyStack(stackToDestroy);
201
-                    for (int i = 0; i < children.size() - 1; i++) {
201
+                    for (int i = 0; i < children.size(); i++) {
202 202
                         stack.set(children.get(i).getId(), children.get(i), i);
203 203
                         children.get(i).setParentController(StackController.this);
204 204
                         if (i == 0) {