|
@@ -6,6 +6,6 @@ import android.widget.TextView;
|
6
|
6
|
|
7
|
7
|
public class TitleBarHelper {
|
8
|
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
|
}
|