From 58fd6f92738cda5482cc36bc33f2867780df6e64 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 7 Aug 2015 12:52:32 -0700 Subject: [PATCH] Actually play the default notification sound. Fixes #3912 // FREEBIE --- .../securesms/notifications/AbstractNotificationBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/notifications/AbstractNotificationBuilder.java b/src/org/thoughtcrime/securesms/notifications/AbstractNotificationBuilder.java index 1ad3f7d243..28f255020f 100644 --- a/src/org/thoughtcrime/securesms/notifications/AbstractNotificationBuilder.java +++ b/src/org/thoughtcrime/securesms/notifications/AbstractNotificationBuilder.java @@ -45,8 +45,8 @@ public abstract class AbstractNotificationBuilder extends NotificationCompat.Bui String ledBlinkPatternCustom = TextSecurePreferences.getNotificationLedPatternCustom(context); String[] blinkPatternArray = parseBlinkPattern(ledBlinkPattern, ledBlinkPatternCustom); - if (ringtone != null) setSound(ringtone); - else if (TextUtils.isEmpty(defaultRingtoneName)) setSound(Uri.parse(defaultRingtoneName)); + if (ringtone != null) setSound(ringtone); + else if (!TextUtils.isEmpty(defaultRingtoneName)) setSound(Uri.parse(defaultRingtoneName)); if (vibrate == RecipientPreferenceDatabase.VibrateState.ENABLED || (vibrate == RecipientPreferenceDatabase.VibrateState.DEFAULT && defaultVibrate))