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

Commit

Permalink
fix uri parsing
Browse files Browse the repository at this point in the history
update nuspec
  • Loading branch information
aritchie committed May 28, 2017
1 parent 50b02f1 commit 5f0d895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Acr.Notifications.Android/NotificationsImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public override string Send(Notification notification)

if (notification.Sound != null)
{
var file = new File(notification.Sound);
var uri = Android.Net.Uri.FromFile(file);
var uri = Android.Net.Uri.Parse(notification.Sound);
builder.SetSound(uri);
}
var not = builder.Build();
Expand Down
1 change: 1 addition & 0 deletions nuspec/Acr.Notifications.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
3.2.0
[feature] full metadata can now be added to a notification via Notification.SetMetadata (UWP scheduled message currently wont allow this)
[fix][android] default sound was not set on the notification properly
[fix][android] URI is now parsed instead of assuming a file location

3.1.2
[fix][ios] alert title not set properly
Expand Down

0 comments on commit 5f0d895

Please sign in to comment.