From 0ad45280411c41f0ac2379dd81a5dbc56bb8d873 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 27 Jul 2020 11:24:03 +0300 Subject: [PATCH] Add annotation --- OsmAnd/src/net/osmand/plus/helpers/AndroidUiHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/AndroidUiHelper.java b/OsmAnd/src/net/osmand/plus/helpers/AndroidUiHelper.java index 4980d25025..45f5fe3ff4 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/AndroidUiHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/AndroidUiHelper.java @@ -8,6 +8,7 @@ import android.util.Log; import android.view.Surface; import android.view.View; +import androidx.annotation.IdRes; import androidx.annotation.NonNull; import net.osmand.PlatformUtil; @@ -93,7 +94,7 @@ public class AndroidUiHelper { return false; } - public static void setVisibility(@NonNull Activity activity, int visibility, int... widgets) { + public static void setVisibility(@NonNull Activity activity, int visibility, @IdRes int... widgets) { for (int widget : widgets) { View view = activity.findViewById(widget); if (view != null && view.getVisibility() != visibility) {