Skip to content

Commit ced8d21

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Add string for 'Ethernet'.
Bug: 6676469 Change-Id: Icbeb3e96b8580850a8392f443dc277488631bcab
1 parent 0887711 commit ced8d21

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/SystemUI/res/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@
401401
<!-- Name of the launcher shortcut icon that allows dreams to be started immediately [CHAR LIMIT=20] -->
402402
<string name="start_dreams">Start dreams</string>
403403

404+
<!-- Textual description of Ethernet connections -->
405+
<string name="ethernet_label">Ethernet</string>
406+
404407
<!-- QuickSettings: Airplane mode [CHAR LIMIT=NONE] -->
405408
<string name="quick_settings_airplane_mode_label">Airplane mode</string>
406409
<!-- QuickSettings: Battery Charging [CHAR LIMIT=NONE] -->

packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,8 +1097,7 @@ void refreshViews() {
10971097

10981098
final boolean ethernetConnected = (mConnectedNetworkType == ConnectivityManager.TYPE_ETHERNET);
10991099
if (ethernetConnected) {
1100-
// TODO: icons and strings for Ethernet connectivity
1101-
combinedLabel = mConnectedNetworkTypeName;
1100+
combinedLabel = context.getString(R.string.ethernet_label);
11021101
}
11031102

11041103
if (mAirplaneMode &&

0 commit comments

Comments
 (0)