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

Commit 41efb403 authored by Priyank Singh's avatar Priyank Singh
Browse files

"Charging this device via USB" notification isn't relevant for automotive.

Bug: 124302589
Test: Manual
Change-Id: Icaa56c5f9ead79ce0306a95229f915073d1b6a1f
parent 6e77293d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1095,6 +1095,14 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser
                    Slog.d(TAG, "Clear notification");
                    mUsbNotificationId = 0;
                }
                // Not relevant for automotive.
                if (mContext.getPackageManager().hasSystemFeature(
                        PackageManager.FEATURE_AUTOMOTIVE)
                        && id == SystemMessage.NOTE_USB_CHARGING) {
                    mUsbNotificationId = 0;
                    return;
                }

                if (id != 0) {
                    CharSequence title = r.getText(titleRes);
                    PendingIntent pi;