USB: Correct title bar notification am: c0162a74b9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15580595

Change-Id: I5c1606698ca17794051bf9a52ea19ee608ece70e
This commit is contained in:
James Wei
2021-08-16 10:51:21 +00:00
committed by Automerger Merge Worker

View File

@@ -1193,7 +1193,8 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser
} else if (mCurrentFunctions == UsbManager.FUNCTION_MIDI) { } else if (mCurrentFunctions == UsbManager.FUNCTION_MIDI) {
titleRes = com.android.internal.R.string.usb_midi_notification_title; titleRes = com.android.internal.R.string.usb_midi_notification_title;
id = SystemMessage.NOTE_USB_MIDI; id = SystemMessage.NOTE_USB_MIDI;
} else if (mCurrentFunctions == UsbManager.FUNCTION_RNDIS) { } else if ((mCurrentFunctions == UsbManager.FUNCTION_RNDIS)
|| (mCurrentFunctions == UsbManager.FUNCTION_NCM)) {
titleRes = com.android.internal.R.string.usb_tether_notification_title; titleRes = com.android.internal.R.string.usb_tether_notification_title;
id = SystemMessage.NOTE_USB_TETHER; id = SystemMessage.NOTE_USB_TETHER;
} else if (mCurrentFunctions == UsbManager.FUNCTION_ACCESSORY) { } else if (mCurrentFunctions == UsbManager.FUNCTION_ACCESSORY) {