Merge "Fix: Display full text in "Switch to mic" notification" into main
diff --git a/services/accessibility/java/com/android/server/accessibility/HearingDevicePhoneCallNotificationController.java b/services/accessibility/java/com/android/server/accessibility/HearingDevicePhoneCallNotificationController.java
index d06daf5..10dffb5 100644
--- a/services/accessibility/java/com/android/server/accessibility/HearingDevicePhoneCallNotificationController.java
+++ b/services/accessibility/java/com/android/server/accessibility/HearingDevicePhoneCallNotificationController.java
@@ -221,13 +221,15 @@
         }
 
         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))