diff options
| author | 2021-12-22 17:38:30 +0000 | |
|---|---|---|
| committer | 2021-12-22 17:38:30 +0000 | |
| commit | 29d27008a7f13e8a14c6c96551d90df3bf97fba9 (patch) | |
| tree | 54c8ba4115fdef9b0063967d71ed123a35f417b6 /graphics/java/android | |
| parent | 57085464228efb6433f17178b7c08e83fd454567 (diff) | |
| parent | 33c1ea73e869e68b793ae9a21c2d8ea41e9f1c9a (diff) | |
Merge "Enable path clipping for View outlines"
Diffstat (limited to 'graphics/java/android')
| -rw-r--r-- | graphics/java/android/graphics/Outline.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/java/android/graphics/Outline.java b/graphics/java/android/graphics/Outline.java index b77865f423c6..fc7f84c3c83e 100644 --- a/graphics/java/android/graphics/Outline.java +++ b/graphics/java/android/graphics/Outline.java @@ -118,13 +118,13 @@ public final class Outline { /** * Returns whether the outline can be used to clip a View. * <p> - * Currently, only Outlines that can be represented as a rectangle, circle, - * or round rect support clipping. + * As of API 33, all Outline shapes support clipping. Prior to API 33, only Outlines that + * could be represented as a rectangle, circle, or round rect supported clipping. * * @see android.view.View#setClipToOutline(boolean) */ public boolean canClip() { - return mMode != MODE_PATH; + return true; } /** |