Browse Source

fix unit tests

Guy Carmeli 6 years ago
parent
commit
c737fdd4ac

+ 1
- 1
lib/android/app/src/test/java/com/reactnativenavigation/utils/TitleBarHelper.java View File

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
 }