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

Commit c0162a74 authored by James Wei's avatar James Wei
Browse files

USB: Correct title bar notification

Change notification in accordance with additional tethering support on NCM

Bug: 196240561
Test: Manual test: Switch USB tethering to and from MTP / Charge Only
Change-Id: I7a5e1d7066774d60c3ba7f453554dc3a25b0af69
parent c9ce62c0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {