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

[Android] Avoid update native control enabled if is already disposed #14748

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Avoid update native control enabled if is already disposed on Android.

Issues Resolved

API Changes

None

Platforms Affected

  • Android

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

return;
}

if (Control.IsDisposed())
Copy link
Contributor Author

@jsuarezruiz jsuarezruiz Oct 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In some cases, UpdateIsEnabled method is invoked with a control that is already disposed before invoke the Dispose method from VisualElementRenderer. Added an extra validation with the native control until have more feedback from #14738.

@jfversluis jfversluis merged commit 7f870c3 into 5.0.0 Nov 8, 2021
@jfversluis jfversluis deleted the fix-14738-II branch November 8, 2021 11:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants