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

Commit

Permalink
fixed FileProvider_Tests (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth authored Mar 5, 2020
1 parent de3def1 commit 3c83555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DeviceTests/DeviceTests.Android/Tests/FileProvider_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void Share_Simple_Text_File_Test()
Assert.False(FileProvider.IsFileInPublicLocation(file));

// Actually get a safe shareable file uri
var shareableUri = Platform.GetShareableFileUri(file);
var shareableUri = Platform.GetShareableFileUri(new ReadOnlyFile(file));

// Launch an intent to let tye user pick where to open this content
var intent = new Android.Content.Intent(Android.Content.Intent.ActionSend);
Expand Down Expand Up @@ -226,7 +226,7 @@ static Android.Net.Uri GetShareableUri(string file, FileProviderLocation locatio
FileProvider.TemporaryLocation = location;

// get the uri
return Platform.GetShareableFileUri(file);
return Platform.GetShareableFileUri(new ReadOnlyFile(file));
}
finally
{
Expand Down

0 comments on commit 3c83555

Please sign in to comment.