am 788e30bd: Merge "Revert "Always project ripples"" into lmp-mr1-dev
* commit '788e30bd34b575e029d6b55d74e9c81ce28b21df': Revert "Always project ripples"
This commit is contained in:
@@ -348,8 +348,7 @@ public class RippleDrawable extends LayerDrawable {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isProjected() {
|
public boolean isProjected() {
|
||||||
// Always project ripples. We'll handle bounding in draw().
|
return getNumberOfLayers() == 0;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -852,7 +851,7 @@ public class RippleDrawable extends LayerDrawable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Rect getDirtyBounds() {
|
public Rect getDirtyBounds() {
|
||||||
if (getNumberOfLayers() == 0) {
|
if (isProjected()) {
|
||||||
final Rect drawingBounds = mDrawingBounds;
|
final Rect drawingBounds = mDrawingBounds;
|
||||||
final Rect dirtyBounds = mDirtyBounds;
|
final Rect dirtyBounds = mDirtyBounds;
|
||||||
dirtyBounds.set(drawingBounds);
|
dirtyBounds.set(drawingBounds);
|
||||||
|
|||||||
Reference in New Issue
Block a user