Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Automated dotnet-format update (#14342)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Jun 10, 2021
1 parent 5209ec5 commit ae8e52f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public override void OnInitializeAccessibilityNodeInfo(global::Android.Views.Vie
if (_element == null)
return;

if(Flags.IsAccessibilityExperimentalSet())
if (Flags.IsAccessibilityExperimentalSet())
{
var value = AutomationPropertiesProvider.ConcatenateNameAndHelpText(_element);
if (!string.IsNullOrWhiteSpace(value))
{
host.ContentDescription = value;
}
else if(host.ContentDescription == (_element as VisualElement)?.AutomationId)
else if (host.ContentDescription == (_element as VisualElement)?.AutomationId)
{
host.ContentDescription = null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal static void GetDrawerAccessibilityResources(global::Android.Content.Con
}

static bool ShoudISetImportantForAccessibilityToNoIfAutomationIdIsSet(AView control, Element element)
{
{
if (!Flags.IsAccessibilityExperimentalSet())
return false;

Expand Down Expand Up @@ -105,7 +105,7 @@ internal static void SetAutomationId(AView control, Element element, string valu

if (String.IsNullOrWhiteSpace(contentDescription))
{
if(Flags.IsAccessibilityExperimentalSet())
if (Flags.IsAccessibilityExperimentalSet())
{
SetAutomationId(control, element, element.AutomationId);
return;
Expand Down Expand Up @@ -148,7 +148,7 @@ internal static void SetFocusable(AView control, Element element, ref bool? defa
{
defaultFocusable = control.Focusable;
}

if (!defaultImportantForAccessibility.HasValue)
{
// Auto is the default just use that
Expand Down
2 changes: 1 addition & 1 deletion Xamarin.Forms.Platform.Android/Renderers/PageRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected override void OnElementChanged(ElementChangedEventArgs<Page> e)

UpdateBackground(false);

if(!Flags.IsAccessibilityExperimentalSet())
if (!Flags.IsAccessibilityExperimentalSet())
Clickable = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ protected virtual void UpdateToolbarIconAccessibilityText(Toolbar toolbar, Shell
{
if (Flags.IsAccessibilityExperimentalSet())
{
if(CanNavigateBack)
if (CanNavigateBack)
toolbar.SetNavigationContentDescription(Resource.String.nav_app_bar_navigate_up_description);
else
toolbar.SetNavigationContentDescription(Resource.String.nav_app_bar_open_drawer_description);
Expand Down

0 comments on commit ae8e52f

Please sign in to comment.