Correct default value of 'pref_key_ringtone'.

Fixes #2793
Closes #2831

// FREEBIE
This commit is contained in:
Rhodey Orbits 2015-03-30 12:36:40 -07:00 committed by Moxie Marlinspike
parent 797b296f3a
commit f4fe024e50

View File

@ -3,10 +3,9 @@ package org.thoughtcrime.securesms.util;
import android.content.Context; import android.content.Context;
import android.os.Build; import android.os.Build;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import android.provider.Settings;
import android.util.Log; import android.util.Log;
import org.thoughtcrime.securesms.R;
import java.io.IOException; import java.io.IOException;
public class TextSecurePreferences { public class TextSecurePreferences {
@ -378,7 +377,7 @@ public class TextSecurePreferences {
} }
public static String getNotificationRingtone(Context context) { 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) { public static boolean isNotificationVibrateEnabled(Context context) {