Skip to content

Commit

Permalink
use async dispatch method
Browse files Browse the repository at this point in the history
Prevents unresponsive dialogue on Android
  • Loading branch information
williambohrmann3 committed Jul 3, 2024
1 parent 0f51e43 commit 790daee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private void LocationDisplay_LocationChanged(object sender, Location loc)
labelText += $"Horizontal accuracy: {string.Format("{0:0.##}", loc.HorizontalAccuracy)}m";

// Update UI on the main thread.
Dispatcher.Dispatch(() =>
Dispatcher.DispatchAsync(() =>
{
PositioningLabel.Text = labelText;
});
Expand Down

0 comments on commit 790daee

Please sign in to comment.