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

Commit 9a7f47ff authored by Priyank Singh's avatar Priyank Singh Committed by android-build-merger
Browse files

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

Merge ""Charging this device via USB" notification isn't relevant for automotive." into qt-dev am: 2dd14519
am: cecd40b8

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

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