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

Commit

Permalink
Merge pull request #1171 from xamarin/bug/gh-1158
Browse files Browse the repository at this point in the history
GH-1158 Remove configure await false, needs to be on main thread.
  • Loading branch information
Redth authored Mar 25, 2020
2 parents c1e48ec + 59d537a commit ef770bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Xamarin.Essentials/Launcher/Launcher.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ static Task PlatformOpenAsync(OpenFileRequest request)

static async Task<bool> PlatformTryOpenAsync(Uri uri)
{
var canOpen = await PlatformCanOpenAsync(uri).ConfigureAwait(false);
var canOpen = await PlatformCanOpenAsync(uri);

if (canOpen)
await PlatformOpenAsync(uri).ConfigureAwait(false);
await PlatformOpenAsync(uri);

return canOpen;
}
Expand Down
4 changes: 2 additions & 2 deletions Xamarin.Essentials/Launcher/Launcher.tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ static Task PlatformOpenAsync(OpenFileRequest request)

static async Task<bool> PlatformTryOpenAsync(Uri uri)
{
var canOpen = await PlatformCanOpenAsync(uri).ConfigureAwait(false);
var canOpen = await PlatformCanOpenAsync(uri);

if (canOpen)
await PlatformOpenAsync(uri).ConfigureAwait(false);
await PlatformOpenAsync(uri);

return canOpen;
}
Expand Down
4 changes: 2 additions & 2 deletions Xamarin.Essentials/Launcher/Launcher.uwp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ static async Task PlatformOpenAsync(OpenFileRequest request)

static async Task<bool> PlatformTryOpenAsync(Uri uri)
{
var canOpen = await PlatformCanOpenAsync(uri).ConfigureAwait(false);
var canOpen = await PlatformCanOpenAsync(uri);

if (canOpen)
return await WinLauncher.LaunchUriAsync(uri).AsTask().ConfigureAwait(false);
return await WinLauncher.LaunchUriAsync(uri).AsTask();

return canOpen;
}
Expand Down

0 comments on commit ef770bf

Please sign in to comment.