Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 310f7b88 authored by Jason Hsu's avatar Jason Hsu Committed by Android (Google) Code Review
Browse files

Merge "Fix: Display full text in "Switch to mic" notification" into main

parents f4f8f15f 4da6ec56
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -221,13 +221,15 @@ public class HearingDevicePhoneCallNotificationController {
        }

        private Notification createSwitchInputNotification(boolean useRemoteMicrophone) {
            final CharSequence message = getSwitchInputMessage(useRemoteMicrophone);
            return new Notification.Builder(mContext,
                    SystemNotificationChannels.ACCESSIBILITY_HEARING_DEVICE)
                    .setContentTitle(getSwitchInputTitle(useRemoteMicrophone))
                    .setContentText(getSwitchInputMessage(useRemoteMicrophone))
                    .setContentText(message)
                    .setSmallIcon(R.drawable.ic_settings_24dp)
                    .setColor(mContext.getResources().getColor(
                            com.android.internal.R.color.system_notification_accent_color))
                    .setStyle(new Notification.BigTextStyle().bigText(message))
                    .setLocalOnly(true)
                    .setCategory(Notification.CATEGORY_SYSTEM)
                    .setContentIntent(createPendingIntent(ACTION_BLUETOOTH_DEVICE_DETAILS))