am 2dac0ad7: Merge "Add an extra pixel to the ripple radius used for bounds" into lmp-dev

* commit '2dac0ad754b8ccb910e76ed7136e40814006c1c3':
  Add an extra pixel to the ripple radius used for bounds
This commit is contained in:
Alan Viverette
2014-08-07 20:42:43 +00:00
committed by Android Git Automerger
2 changed files with 2 additions and 2 deletions

View File

@@ -276,7 +276,7 @@ class Ripple {
public void getBounds(Rect bounds) {
final int outerX = (int) mOuterX;
final int outerY = (int) mOuterY;
final int r = (int) mOuterRadius;
final int r = (int) mOuterRadius + 1;
bounds.set(outerX - r, outerY - r, outerX + r, outerY + r);
}

View File

@@ -264,7 +264,7 @@ class RippleBackground {
public void getBounds(Rect bounds) {
final int outerX = (int) mOuterX;
final int outerY = (int) mOuterY;
final int r = (int) mOuterRadius;
final int r = (int) mOuterRadius + 1;
bounds.set(outerX - r, outerY - r, outerX + r, outerY + r);
}