Skip to content

Commit

Permalink
Merge pull request #8 from IeuanWalker/main
Browse files Browse the repository at this point in the history
Fixes android set focus
  • Loading branch information
rachelkang authored Jan 7, 2022
2 parents 680c223 + 8f54cce commit b7c299c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions A11YTools/A11YTools.Android/AndroidA11yService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public class AndroidA11yService : IA11yService
{
public void SetControlType(VisualElement element, ControlType controlType)
{
var renderer = Platform.GetRenderer(element);
var view = element.GetViewForAccessibility();

if (view == null)
Expand Down Expand Up @@ -62,10 +61,8 @@ public void SetIsClickable(VisualElement element, bool isClickable, System.Actio

public void SetFocus(VisualElement element)
{
var renderer = Platform.GetRenderer(element);
var view = element.GetViewForAccessibility();

view?.SendAccessibilityEvent(EventTypes.ViewAccessibilityFocused);
view?.SendAccessibilityEvent((EventTypes)(int)WindowsChange.AccessibilityFocused);
}

public void SetAnnouncement(string text)
Expand Down

0 comments on commit b7c299c

Please sign in to comment.