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

Commit

Permalink
added additional ctor to AccessibilityListener to avoid app crash (#1924
Browse files Browse the repository at this point in the history
)
  • Loading branch information
thisisthekap committed Feb 11, 2023
1 parent 6d2d2d9 commit 3f5d7cd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Android.Content.Res;
using Android.Graphics.Drawables;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Views.Accessibility;
using Android.Widget;
Expand Down Expand Up @@ -486,6 +487,11 @@ sealed class AccessibilityListener : Java.Lang.Object,
internal AccessibilityListener(PlatformTouchEffect platformTouchEffect)
=> this.platformTouchEffect = platformTouchEffect;

public AccessibilityListener(IntPtr handle, JniHandleOwnership transfer)
: base(handle, transfer)
{
}

public void OnAccessibilityStateChanged(bool enabled)
=> platformTouchEffect?.UpdateClickHandler();

Expand Down

0 comments on commit 3f5d7cd

Please sign in to comment.