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

Commit 57e1539a authored by Daichi Hirono's avatar Daichi Hirono Committed by Android (Google) Code Review
Browse files

Merge "Add new text for USB type C host." into nyc-dev

parents 9948c37e b6abccc8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2904,7 +2904,9 @@
    <string name="dlg_ok">OK</string>

    <!-- USB_PREFERENCES: Notification for when the user connected to the charger only.  This is the title -->
    <string name="usb_charging_notification_title">USB for charging</string>
    <string name="usb_charging_notification_title">USB charging this device</string>
    <!-- USB_PREFERENCES: Notification for when the user connects the phone to supply power to attached device.  This is the title -->
    <string name="usb_supplying_notification_title">USB supplying power to attached device</string>
    <!-- USB_PREFERENCES: Notification for when the user connects the phone to a computer via USB in MTP mode.  This is the title -->
    <string name="usb_mtp_notification_title">USB for file transfer</string>
    <!-- USB_PREFERENCES: Notification for when the user connects the phone to a computer via USB in PTP mode.  This is the title -->
+1 −0
Original line number Diff line number Diff line
@@ -1863,6 +1863,7 @@
  <java-symbol type="string" name="usb_notification_message" />
  <java-symbol type="string" name="usb_ptp_notification_title" />
  <java-symbol type="string" name="usb_midi_notification_title" />
  <java-symbol type="string" name="usb_supplying_notification_title" />
  <java-symbol type="string" name="vpn_text" />
  <java-symbol type="string" name="vpn_text_long" />
  <java-symbol type="string" name="vpn_title" />
+3 −1
Original line number Diff line number Diff line
@@ -780,7 +780,7 @@ public class UsbDeviceManager {
                    || ("0".equals(SystemProperties.get("persist.charging.notify")))) return;
            int id = 0;
            Resources r = mContext.getResources();
            if (mConnected || mHostConnected) {
            if (mConnected) {
                if (!mUsbDataUnlocked) {
                    id = com.android.internal.R.string.usb_charging_notification_title;
                } else if (UsbManager.containsFunction(mCurrentFunctions,
@@ -798,6 +798,8 @@ public class UsbDeviceManager {
                } else {
                    id = com.android.internal.R.string.usb_charging_notification_title;
                }
            } else if (mHostConnected) {
                id = com.android.internal.R.string.usb_supplying_notification_title;
            }
            if (id != mUsbNotificationId) {
                // clear notification if title needs changing