added additional ctor to AccessibilityListener to avoid app crash (#1924)
This commit is contained in:
Родитель
6d2d2d90ba
Коммит
3f5d7cd295
|
@ -5,6 +5,7 @@ using Android.Content;
|
|||
using Android.Content.Res;
|
||||
using Android.Graphics.Drawables;
|
||||
using Android.OS;
|
||||
using Android.Runtime;
|
||||
using Android.Views;
|
||||
using Android.Views.Accessibility;
|
||||
using Android.Widget;
|
||||
|
@ -486,6 +487,11 @@ namespace Xamarin.CommunityToolkit.Android.Effects
|
|||
internal AccessibilityListener(PlatformTouchEffect platformTouchEffect)
|
||||
=> this.platformTouchEffect = platformTouchEffect;
|
||||
|
||||
public AccessibilityListener(IntPtr handle, JniHandleOwnership transfer)
|
||||
: base(handle, transfer)
|
||||
{
|
||||
}
|
||||
|
||||
public void OnAccessibilityStateChanged(bool enabled)
|
||||
=> platformTouchEffect?.UpdateClickHandler();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче