Bug 1059450 - Fix shape dimension in BackButton (r=mcomella)

This commit is contained in:
Lucas Rocha 2014-09-01 18:24:34 +01:00
Родитель a6aec2ead6
Коммит ab42630f64
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -49,10 +49,10 @@ public class BackButton extends ShapedButton {
super.onSizeChanged(width, height, oldWidth, oldHeight);
mPath.reset();
mPath.addCircle(width/2, height/2, width/2 - mBorderWidth, Path.Direction.CW);
mPath.addCircle(width/2, height/2, width/2, Path.Direction.CW);
mBorderPath.reset();
mBorderPath.addCircle(width/2, height/2, (width/2) - mBorderWidth, Path.Direction.CW);
mBorderPath.addCircle(width/2, height/2, (width/2) - (mBorderWidth/2), Path.Direction.CW);
}
@Override