Add annotation

This commit is contained in:
Vitaliy 2020-07-27 11:24:03 +03:00
parent 086f52d61d
commit 0ad4528041

View file

@ -8,6 +8,7 @@ import android.util.Log;
import android.view.Surface; import android.view.Surface;
import android.view.View; import android.view.View;
import androidx.annotation.IdRes;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import net.osmand.PlatformUtil; import net.osmand.PlatformUtil;
@ -93,7 +94,7 @@ public class AndroidUiHelper {
return false; 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) { for (int widget : widgets) {
View view = activity.findViewById(widget); View view = activity.findViewById(widget);
if (view != null && view.getVisibility() != visibility) { if (view != null && view.getVisibility() != visibility) {