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