Skip to content

Commit 89fc249

Browse files
authored
fix(android): path must be convex (#10238)
closes: #10235
1 parent a23c8bd commit 89fc249

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
-3.71 KB
Binary file not shown.

packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -905,13 +905,13 @@ public void getOutline(@NonNull Outline outline) {
905905
};
906906
outlineRectF.setEmpty();
907907
outlineRectF.set(getBounds());
908-
backgroundPath.addRoundRect(outlineRectF, backgroundRadii, Path.Direction.CW);
908+
outlineBackgroundPath.addRoundRect(outlineRectF, backgroundRadii, Path.Direction.CW);
909909

910910
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
911911
// see setConvexPath notes
912-
outline.setPath(backgroundPath);
912+
outline.setPath(outlineBackgroundPath);
913913
} else {
914-
outline.setConvexPath(backgroundPath);
914+
outline.setConvexPath(outlineBackgroundPath);
915915
}
916916

917917
} else {

0 commit comments

Comments
 (0)