瀏覽代碼

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
 }