Skip to content

Commit

Permalink
Make ShadowGradientDrawable.{g,s}etShape protected
Browse files Browse the repository at this point in the history
Shadow `@Implementation` methods should be protected to avoid
introducing new shadow APIs.
  • Loading branch information
hoisie committed Dec 3, 2024
1 parent 82f74e9 commit 5dd853b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected void setColor(int color) {
}

@Implementation
public void setShape(int shape) {
protected void setShape(int shape) {
this.shape = shape;
reflector(GradientDrawableReflector.class, realGradientDrawable).setShape(shape);
}
Expand All @@ -50,7 +50,7 @@ public int getLastSetColor() {
}

@Implementation(minSdk = Build.VERSION_CODES.N)
public int getShape() {
protected int getShape() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
return shape;
}
Expand Down

0 comments on commit 5dd853b

Please sign in to comment.