packages/apps/Settings
Revisão | 57216dc1d7f9ca79ffc4cbc4f9159e8f16b2c92b (tree) |
---|---|
Hora | 2009-09-05 04:21:06 |
Autor | Yi Sun <beyounn@gmai...> |
Commiter | Chih-Wei Huang |
change the summary of ethernet checkbox
@@ -2024,8 +2024,8 @@ found in the list of installed applications.</string> | ||
2024 | 2024 | <string name="eth_dns">DNS address</string> |
2025 | 2025 | <string name="eth_gw">Default Router</string> |
2026 | 2026 | <string name="eth_ipaddr">IP address</string> |
2027 | -<string name="eth_quick_toggle_title">Toggle Ethernet</string> | |
2028 | -<string name="eth_quick_toggle_summary">Toggle Ethernet Configuration</string> | |
2027 | +<string name="eth_quick_toggle_title">Ethernet</string> | |
2028 | +<string name="eth_toggle_summary_on">Turn on Ethernet </string> | |
2029 | 2029 | <string name="eth_conf_save">Save</string> |
2030 | 2030 | <string name="eth_conf_cancel">Cancel</string> |
2031 | 2031 | <string name="eth_radio_ctrl_title">Ethernet Configuration</string> |
@@ -2033,4 +2033,5 @@ found in the list of installed applications.</string> | ||
2033 | 2033 | <string name="eth_conf_perf_title">Ethernet Configuration</string> |
2034 | 2034 | <string name="eth_conf_summary">Configure Ethernet Devices</string> |
2035 | 2035 | <string name="eth_mask">Netmask</string> |
2036 | +<string name="eth_toggle_summary_off">Turn off Ethernet</string> | |
2036 | 2037 | </resources> |
@@ -20,7 +20,8 @@ | ||
20 | 20 | <CheckBoxPreference |
21 | 21 | android:key="toggle_eth" |
22 | 22 | android:title="@string/eth_quick_toggle_title" |
23 | - android:summary="@string/eth_quick_toggle_summary" | |
23 | + android:summaryOn="@string/eth_toggle_summary_off" | |
24 | + android:summaryOff="@string/eth_toggle_summary_on" | |
24 | 25 | android:persistent="false" /> |
25 | 26 | <Preference |
26 | 27 | android:title="@string/eth_conf_perf_title" |
@@ -62,8 +62,9 @@ public class EthernetEnabler implements Preference.OnPreferenceChangeListener{ | ||
62 | 62 | |
63 | 63 | mOriginalSummary = ethernetCheckBoxPreference.getSummary(); |
64 | 64 | ethernetCheckBoxPreference.setPersistent(false); |
65 | - if(mEthManager.getEthState() == ETH_STATE_ENABLED) | |
65 | + if(mEthManager.getEthState() == ETH_STATE_ENABLED) { | |
66 | 66 | mEthCheckBoxPref.setChecked(true); |
67 | + } | |
67 | 68 | |
68 | 69 | /* |
69 | 70 | mEthStateFilter = new IntentFilter(EthernetManager.ETH_STATE_CHANGED_ACTION); |