浏览代码

fix unit tests

Guy Carmeli 7 年前
父节点
当前提交
c737fdd4ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/android/app/src/test/java/com/reactnativenavigation/utils/TitleBarHelper.java

+ 1
- 1
lib/android/app/src/test/java/com/reactnativenavigation/utils/TitleBarHelper.java 查看文件

6
 
6
 
7
 public class TitleBarHelper {
7
 public class TitleBarHelper {
8
     public static View getRightButton(Toolbar toolbar, int index) {
8
     public static View getRightButton(Toolbar toolbar, int index) {
9
-        return (View) ViewUtils.findChildrenByClassRecursive(toolbar, TextView.class).get(index);
9
+        return (View) ViewUtils.findChildrenByClassRecursive(toolbar, TextView.class).get(toolbar.getMenu().size() - index - 1);
10
     }
10
     }
11
 }
11
 }