diff --git a/services/usb/java/com/android/server/usb/UsbDeviceManager.java b/services/usb/java/com/android/server/usb/UsbDeviceManager.java index 175a09db54e3..c177cb43e893 100644 --- a/services/usb/java/com/android/server/usb/UsbDeviceManager.java +++ b/services/usb/java/com/android/server/usb/UsbDeviceManager.java @@ -1501,7 +1501,8 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser titleRes = com.android.internal.R.string.usb_charging_notification_title; id = SystemMessage.NOTE_USB_CHARGING; } else if (mSinkPower && mConnectedToDataDisabledPort - && mPowerBrickConnectionStatus != UsbPortStatus.POWER_BRICK_STATUS_CONNECTED) { + && mPowerBrickConnectionStatus == + UsbPortStatus.POWER_BRICK_STATUS_DISCONNECTED) { // Show charging notification when USB Data is disabled on the port, and not // connected to a wall charger. titleRes = com.android.internal.R.string.usb_charging_notification_title;