mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-21 17:28:37 +00:00
closes #367 - add option to disable audible inthread notifications
This commit is contained in:
@@ -228,6 +228,11 @@ public class MessageNotifier {
|
||||
private static void sendInThreadNotification(Context context) {
|
||||
try {
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
|
||||
if (!sp.getBoolean(ApplicationPreferencesActivity.IN_THREAD_NOTIFICATION_PREF, true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
String ringtone = sp.getString(ApplicationPreferencesActivity.RINGTONE_PREF, null);
|
||||
|
||||
if (ringtone == null)
|
||||
|
Reference in New Issue
Block a user