Actually play the default notification sound.

Fixes #3912
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-08-07 12:52:32 -07:00
parent 31b2fab6e9
commit 58fd6f9273

View File

@ -46,7 +46,7 @@ public abstract class AbstractNotificationBuilder extends NotificationCompat.Bui
String[] blinkPatternArray = parseBlinkPattern(ledBlinkPattern, ledBlinkPatternCustom);
if (ringtone != null) setSound(ringtone);
else if (TextUtils.isEmpty(defaultRingtoneName)) setSound(Uri.parse(defaultRingtoneName));
else if (!TextUtils.isEmpty(defaultRingtoneName)) setSound(Uri.parse(defaultRingtoneName));
if (vibrate == RecipientPreferenceDatabase.VibrateState.ENABLED ||
(vibrate == RecipientPreferenceDatabase.VibrateState.DEFAULT && defaultVibrate))