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

Commit d4c68581 authored by Chris Wren's avatar Chris Wren Committed by Android (Google) Code Review
Browse files

Merge "allow devs to turn off charging notifications"

parents 49c0ea0c c35d7759
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -772,7 +772,8 @@ public class UsbDeviceManager {
        }

        private void updateUsbNotification() {
            if (mNotificationManager == null || !mUseUsbNotification) return;
            if (mNotificationManager == null || !mUseUsbNotification
                    || ("0".equals(SystemProperties.get("persist.charging.notify")))) return;
            int id = 0;
            Resources r = mContext.getResources();
            if (mConnected || mHostConnected) {