|
@@ -113,10 +113,10 @@ public class TitleBar extends Toolbar {
|
113
|
113
|
public void setRightButtons(List<Button> rightButtons) {
|
114
|
114
|
if (rightButtons == null) return;
|
115
|
115
|
clearRightButtons();
|
116
|
|
- for (Button button : rightButtons) {
|
117
|
|
- TopBarButtonController controller = createButtonController(button);
|
|
116
|
+ for (int i = 0; i < rightButtons.size(); i++) {
|
|
117
|
+ TopBarButtonController controller = createButtonController(rightButtons.get(i));
|
118
|
118
|
rightButtonControllers.add(controller);
|
119
|
|
- controller.addToMenu(this);
|
|
119
|
+ controller.addToMenu(this, rightButtons.size() - i - 1);
|
120
|
120
|
}
|
121
|
121
|
}
|
122
|
122
|
|