From 1aef62cdc426dd3290c49c1638c71b48e93e7797 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 4 Jul 2018 21:20:00 +0200 Subject: [PATCH] add the Ring stream to the available sound streams --- .../calendar/activities/SettingsActivity.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt index 0e7f12da2..4e1a4b94a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt @@ -322,7 +322,8 @@ class SettingsActivity : SimpleActivity() { val items = arrayListOf( RadioItem(AudioManager.STREAM_ALARM, res.getString(R.string.alarm_stream)), RadioItem(AudioManager.STREAM_SYSTEM, res.getString(R.string.system_stream)), - RadioItem(AudioManager.STREAM_NOTIFICATION, res.getString(R.string.notification_stream))) + RadioItem(AudioManager.STREAM_NOTIFICATION, res.getString(R.string.notification_stream)), + RadioItem(AudioManager.STREAM_RING, res.getString(R.string.ring_stream))) RadioGroupDialog(this@SettingsActivity, items, config.reminderAudioStream) { config.reminderAudioStream = it as Int @@ -334,7 +335,8 @@ class SettingsActivity : SimpleActivity() { private fun getAudioStreamText() = getString(when (config.reminderAudioStream) { AudioManager.STREAM_ALARM -> R.string.alarm_stream AudioManager.STREAM_SYSTEM -> R.string.system_stream - else -> R.string.notification_stream + AudioManager.STREAM_NOTIFICATION -> R.string.notification_stream + else -> R.string.ring_stream }) private fun setupVibrate() {