Merge "Fixed button bar alignment issue in RTL languages"

This commit is contained in:
Treehugger Robot
2017-12-11 19:10:46 +00:00
committed by Gerrit Code Review

View File

@@ -151,7 +151,7 @@ public class ButtonBarLayout extends LinearLayout {
private void setStacked(boolean stacked) {
setOrientation(stacked ? LinearLayout.VERTICAL : LinearLayout.HORIZONTAL);
setGravity(stacked ? Gravity.RIGHT : Gravity.BOTTOM);
setGravity(stacked ? Gravity.END : Gravity.BOTTOM);
final View spacer = findViewById(R.id.spacer);
if (spacer != null) {