diff --git a/app/src/main/java/com/nextcloud/talk/controllers/SettingsController.java b/app/src/main/java/com/nextcloud/talk/controllers/SettingsController.java index 9d6400619..a4b3e8bed 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/SettingsController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/SettingsController.java @@ -156,6 +156,8 @@ public class SettingsController extends BaseController { TextView serverAgeTextView; @BindView(R.id.server_age_warning_icon) ImageView serverAgeIcon; + @BindView(R.id.settings_notifications_category) + MaterialPreferenceCategory notificationsCategory; @BindView(R.id.settings_call_sound) MaterialStandardPreference settingsCallSound; @BindView(R.id.settings_message_sound) @@ -514,6 +516,10 @@ public class SettingsController extends BaseController { } } + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + notificationsCategory.setTitle(getResources().getString(R.string.nc_settings_notification_sounds_post_oreo)); + } + Uri callRingtoneUri = NotificationUtils.INSTANCE.getCallRingtoneUri(view.getContext(), appPreferences); settingsCallSound.setSummary(getRingtoneName(view.getContext(), callRingtoneUri)); diff --git a/app/src/main/java/com/nextcloud/talk/utils/NotificationUtils.kt b/app/src/main/java/com/nextcloud/talk/utils/NotificationUtils.kt index 63574010a..96b6da3ce 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/NotificationUtils.kt +++ b/app/src/main/java/com/nextcloud/talk/utils/NotificationUtils.kt @@ -136,7 +136,7 @@ object NotificationUtils { context, NOTIFICATION_CHANNEL_MESSAGES_V3, context.resources.getString(R.string.nc_notification_channel_messages), - context.resources.getString(R.string.nc_notification_channel_messages), + context.resources.getString(R.string.nc_notification_channel_messages_description), true, NotificationManagerCompat.IMPORTANCE_HIGH, soundUri, diff --git a/app/src/main/res/layout/controller_settings.xml b/app/src/main/res/layout/controller_settings.xml index 1489420dc..04c19a4d1 100644 --- a/app/src/main/res/layout/controller_settings.xml +++ b/app/src/main/res/layout/controller_settings.xml @@ -161,6 +161,7 @@ Talk app is not installed on the server you tried to authenticate against Your already existing account was updated, instead of adding a new one The account is scheduled for deletion, and cannot be changed - Sound + Notification sounds + Notifications Calls call_ringtone - Notifications + Messages message_ringtone Librem by feandesign No sound @@ -227,9 +228,10 @@ %1$s on %2$s notification channel - Calls notification channel - Messages notification channel - Shows incoming calls + Calls + Messages + Notify about incoming calls + Notify about incoming messages Notification settings Messages Always notify