Loading services/usb/java/com/android/server/usb/UsbDeviceManager.java +4 −2 Original line number Diff line number Diff line Loading @@ -1213,9 +1213,11 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser Slog.d(TAG, "Clear notification"); mUsbNotificationId = 0; } // Not relevant for automotive. if (mContext.getPackageManager().hasSystemFeature( // Not relevant for automotive and watch. if ((mContext.getPackageManager().hasSystemFeature( PackageManager.FEATURE_AUTOMOTIVE) || mContext.getPackageManager().hasSystemFeature( PackageManager.FEATURE_WATCH)) && id == SystemMessage.NOTE_USB_CHARGING) { mUsbNotificationId = 0; return; Loading Loading
services/usb/java/com/android/server/usb/UsbDeviceManager.java +4 −2 Original line number Diff line number Diff line Loading @@ -1213,9 +1213,11 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser Slog.d(TAG, "Clear notification"); mUsbNotificationId = 0; } // Not relevant for automotive. if (mContext.getPackageManager().hasSystemFeature( // Not relevant for automotive and watch. if ((mContext.getPackageManager().hasSystemFeature( PackageManager.FEATURE_AUTOMOTIVE) || mContext.getPackageManager().hasSystemFeature( PackageManager.FEATURE_WATCH)) && id == SystemMessage.NOTE_USB_CHARGING) { mUsbNotificationId = 0; return; Loading