private static ulong AccessibilityCalculateStatesWrapper(IntPtr self, ulong initialStates)
{
View view = GetViewFromRefObject(self);
+ if (view == null)
+ return 0UL;
+
ulong bitMask = 0UL;
lock (AccessibilityInitialStates)
var ad = Interop.ControlDevel.AccessibilityDelegate.Instance;
ad.ScrollToChild = AccessibilityScrollToChildWrapper;
- ad.ShouldReportZeroChildren = AccessibilityShouldReportZeroChildrenWrapper;
}
private static bool AccessibilityScrollToChildWrapper(IntPtr self, IntPtr child)
return view.AccessibilityScrollToChild(view.GetInstanceSafely<View>(child));
}
-
- private static bool AccessibilityShouldReportZeroChildrenWrapper(IntPtr self)
- {
- return GetViewFromRefObject(self).AccessibilityShouldReportZeroChildren();
- }
}
}