Annotate getMaxRadius
Bug: 205828770 Test: m LauncherGoResLib Change-Id: I9a3561f415fa5a20167002e42f7fe41b60b3dc9c
This commit is contained in:
@@ -136,7 +136,7 @@ final class FloatingWidgetBackgroundView extends View {
|
||||
}
|
||||
|
||||
/** Returns the maximum corner radius of {@param drawable}. */
|
||||
private static float getMaxRadius(Drawable drawable) {
|
||||
private static float getMaxRadius(@Nullable Drawable drawable) {
|
||||
if (!(drawable instanceof GradientDrawable)) return 0;
|
||||
float[] cornerRadii = ((GradientDrawable) drawable).getCornerRadii();
|
||||
float cornerRadius = ((GradientDrawable) drawable).getCornerRadius();
|
||||
|
||||
Reference in New Issue
Block a user