Skip to content

Commit

Permalink
Attempt at fixing crash we experience in VisualElementTracker
Browse files Browse the repository at this point in the history
I am confused why this weird code is even here...
It was calling into CADisplayLinkerTicker which turns off
CheckForIllegalCrossThreadCalls
I am both scared and confused...
  • Loading branch information
Jonathan Peppers committed Jun 16, 2016
1 parent b0cc6ce commit 4fa3c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Forms.Platform.iOS/VisualElementTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void OnUpdateNativeControl(CALayer caLayer)
};

if (thread)
CADisplayLinkTicker.Default.Invoke(update);
Device.BeginInvokeOnMainThread(update);
else
update();

Expand Down

0 comments on commit 4fa3c8c

Please sign in to comment.