From 801267df189455ad43c8aeaf546fe3d3cdcafcd7 Mon Sep 17 00:00:00 2001 From: Alexander-- Date: Wed, 22 Jul 2020 07:57:04 -0400 Subject: [PATCH] Add @NonNull annotation to method argument Co-authored-by: Tobias Groza --- .../main/java/org/schabi/newpipe/views/FocusOverlayView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/views/FocusOverlayView.java b/app/src/main/java/org/schabi/newpipe/views/FocusOverlayView.java index 3d9dbc16a..bd5ae10e8 100644 --- a/app/src/main/java/org/schabi/newpipe/views/FocusOverlayView.java +++ b/app/src/main/java/org/schabi/newpipe/views/FocusOverlayView.java @@ -105,7 +105,7 @@ public final class FocusOverlayView extends Drawable implements } } - private boolean isShown(final View view) { + private boolean isShown(@NonNull final View view) { return view.getWidth() != 0 && view.getHeight() != 0 && view.isShown(); }