From f4fe024e503f87a5fea770a904b0f466c91a4834 Mon Sep 17 00:00:00 2001 From: Rhodey Orbits Date: Mon, 30 Mar 2015 12:36:40 -0700 Subject: [PATCH] Correct default value of 'pref_key_ringtone'. Fixes #2793 Closes #2831 // FREEBIE --- .../thoughtcrime/securesms/util/TextSecurePreferences.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/org/thoughtcrime/securesms/util/TextSecurePreferences.java b/src/org/thoughtcrime/securesms/util/TextSecurePreferences.java index 49d5b628ea..1ae209bf6b 100644 --- a/src/org/thoughtcrime/securesms/util/TextSecurePreferences.java +++ b/src/org/thoughtcrime/securesms/util/TextSecurePreferences.java @@ -3,10 +3,9 @@ package org.thoughtcrime.securesms.util; import android.content.Context; import android.os.Build; import android.preference.PreferenceManager; +import android.provider.Settings; import android.util.Log; -import org.thoughtcrime.securesms.R; - import java.io.IOException; public class TextSecurePreferences { @@ -378,7 +377,7 @@ public class TextSecurePreferences { } public static String getNotificationRingtone(Context context) { - return getStringPreference(context, RINGTONE_PREF, null); + return getStringPreference(context, RINGTONE_PREF, Settings.System.DEFAULT_NOTIFICATION_URI.toString()); } public static boolean isNotificationVibrateEnabled(Context context) {