USB: Correct title bar notification am: c0162a74b9

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

Change-Id: I4fc584669ebab303fefbfae7b1ff1bb8d1aabcbd
This commit is contained in:
James Wei
2021-08-16 10:50:29 +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) {
titleRes = com.android.internal.R.string.usb_midi_notification_title;
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;
id = SystemMessage.NOTE_USB_TETHER;
} else if (mCurrentFunctions == UsbManager.FUNCTION_ACCESSORY) {