Merge pull request #1010 from giladno/patch-1
Allow passing null as a sound
This commit is contained in:
commit
6dce84b0db
|
@ -560,7 +560,9 @@ public class RNFirebaseNotificationManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private Uri getSound(String sound) {
|
private Uri getSound(String sound) {
|
||||||
if (sound.contains("://")) {
|
if (sound == null)
|
||||||
|
return null;
|
||||||
|
else if (sound.contains("://")) {
|
||||||
return Uri.parse(sound);
|
return Uri.parse(sound);
|
||||||
} else if (sound.equalsIgnoreCase("default")) {
|
} else if (sound.equalsIgnoreCase("default")) {
|
||||||
return RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
|
return RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
|
||||||
|
|
Loading…
Reference in New Issue