Wifi disconnect policy summary text should not contain "mobile data".

Bug: 4026299

Change the summary if it is a wifi-only device.

Change-Id: I433113d9fc430ab06efec81b6934a03dbb17ca1b
This commit is contained in:
Amith Yamasani
2011-03-08 12:03:13 -08:00
parent 3a695a124e
commit 35bc6b5f15
2 changed files with 3 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ public class WifiSettings extends SettingsPreferenceFragment
if (pref != null) {
if (Utils.isWifiOnly()) {
pref.setEntries(R.array.wifi_sleep_policy_entries_wifi_only);
pref.setSummary(R.string.wifi_setting_sleep_policy_summary_wifi_only);
}
pref.setOnPreferenceChangeListener(this);
int value = Settings.System.getInt(getContentResolver(),