Add annotation
This commit is contained in:
parent
086f52d61d
commit
0ad4528041
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue