commit | 804dd0a2e17985dde351a22a5e1335ab07960ef7 | [log] [tgz] |
---|---|---|
author | Fedor Kudasov <kudasov@google.com> | Tue Nov 23 14:20:49 2021 +0000 |
committer | Fedor Kudasov <kudasov@google.com> | Tue Nov 23 14:20:54 2021 +0000 |
tree | 4efbb3da57bedd68993e67b1fcd54039fe54f0fc | |
parent | 611327d58bf57970f8fd32fe73aeb47c3dc4606a [diff] |
Annotate getMaxRadius Bug: 205828770 Test: m LauncherGoResLib Change-Id: I9a3561f415fa5a20167002e42f7fe41b60b3dc9c
diff --git a/quickstep/src/com/android/quickstep/views/FloatingWidgetBackgroundView.java b/quickstep/src/com/android/quickstep/views/FloatingWidgetBackgroundView.java index c3b166f..adea1a4 100644 --- a/quickstep/src/com/android/quickstep/views/FloatingWidgetBackgroundView.java +++ b/quickstep/src/com/android/quickstep/views/FloatingWidgetBackgroundView.java
@@ -136,7 +136,7 @@ } /** 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();