Loading core/res/res/values/strings.xml +3 −1 Original line number Diff line number Diff line Loading @@ -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 --> Loading core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -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" /> Loading services/usb/java/com/android/server/usb/UsbDeviceManager.java +3 −1 Original line number Diff line number Diff line Loading @@ -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, Loading @@ -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 Loading Loading
core/res/res/values/strings.xml +3 −1 Original line number Diff line number Diff line Loading @@ -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 --> Loading
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -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" /> Loading
services/usb/java/com/android/server/usb/UsbDeviceManager.java +3 −1 Original line number Diff line number Diff line Loading @@ -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, Loading @@ -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 Loading