Messaging: Messages are highly important
Set IMPORTANCE_HIGH so that message notifications will pop on screen by default. Issue: calyxos#2984 Change-Id: I6d6d823310bc0ad5f06a47df69446ebf502894dd
This commit is contained in:
@@ -886,7 +886,7 @@ public class BugleNotifications {
|
|||||||
NotificationsUtil.createNotificationChannel(context,
|
NotificationsUtil.createNotificationChannel(context,
|
||||||
NotificationsUtil.DEFAULT_CHANNEL_ID,
|
NotificationsUtil.DEFAULT_CHANNEL_ID,
|
||||||
R.string.notification_channel_messages_title,
|
R.string.notification_channel_messages_title,
|
||||||
NotificationManager.IMPORTANCE_DEFAULT,
|
NotificationManager.IMPORTANCE_HIGH,
|
||||||
NotificationsUtil.CONVERSATION_GROUP_NAME);
|
NotificationsUtil.CONVERSATION_GROUP_NAME);
|
||||||
notificationManager.notify(notificationTag, type, notification);
|
notificationManager.notify(notificationTag, type, notification);
|
||||||
|
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ public class PeopleAndOptionsFragment extends Fragment
|
|||||||
NotificationsUtil.createNotificationChannel(getActivity(),
|
NotificationsUtil.createNotificationChannel(getActivity(),
|
||||||
mBinding.getData().getConversationId(),
|
mBinding.getData().getConversationId(),
|
||||||
String.join(", ", participantsNames),
|
String.join(", ", participantsNames),
|
||||||
NotificationManager.IMPORTANCE_DEFAULT,
|
NotificationManager.IMPORTANCE_HIGH,
|
||||||
NotificationsUtil.CONVERSATION_GROUP_NAME);
|
NotificationsUtil.CONVERSATION_GROUP_NAME);
|
||||||
Intent intent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS);
|
Intent intent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS);
|
||||||
intent.putExtra(Settings.EXTRA_APP_PACKAGE, getContext().getPackageName());
|
intent.putExtra(Settings.EXTRA_APP_PACKAGE, getContext().getPackageName());
|
||||||
|
|||||||
Reference in New Issue
Block a user