commit | 28e35fcf05de14acda1ceb12c010d93462eac5aa | [log] [tgz] |
---|---|---|
author | Doris Ling <dling@google.com> | Thu Apr 06 17:04:44 2017 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Apr 06 17:04:45 2017 +0000 |
tree | 5b2d71c3d13697507e0787dfc852165ebf2bc7f7 | |
parent | 5a03e321bcaa5212ebf44247ea930bcacdba7ddc [diff] | |
parent | 5853f9742fb72ef155338b94f6904e635e87f675 [diff] |
Merge "Update Wifi off summary text." into oc-dev
diff --git a/src/com/android/settings/wifi/WifiSummaryUpdater.java b/src/com/android/settings/wifi/WifiSummaryUpdater.java index c0d4468..2c56d08 100644 --- a/src/com/android/settings/wifi/WifiSummaryUpdater.java +++ b/src/com/android/settings/wifi/WifiSummaryUpdater.java
@@ -75,7 +75,7 @@ @Override public String getSummary() { if (!mWifiTracker.enabled) { - return mContext.getString(R.string.wifi_disabled_generic); + return mContext.getString(R.string.switch_off_text); } if (!mWifiTracker.connected) { return mContext.getString(R.string.disconnected);
diff --git a/tests/robotests/src/com/android/settings/wifi/WifiSummaryUpdaterTest.java b/tests/robotests/src/com/android/settings/wifi/WifiSummaryUpdaterTest.java index df290b3..967da08 100644 --- a/tests/robotests/src/com/android/settings/wifi/WifiSummaryUpdaterTest.java +++ b/tests/robotests/src/com/android/settings/wifi/WifiSummaryUpdaterTest.java
@@ -103,7 +103,7 @@ mWifiTracker.enabled = false; assertThat(mSummaryUpdater.getSummary()).isEqualTo( - mContext.getString(R.string.wifi_disabled_generic)); + mContext.getString(R.string.switch_off_text)); } @Test