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