• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

Revisão57216dc1d7f9ca79ffc4cbc4f9159e8f16b2c92b (tree)
Hora2009-09-05 04:21:06
AutorYi Sun <beyounn@gmai...>
CommiterChih-Wei Huang

Mensagem de Log

change the summary of ethernet checkbox

Mudança Sumário

Diff

--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -2024,8 +2024,8 @@ found in the list of installed applications.</string>
20242024 <string name="eth_dns">DNS address</string>
20252025 <string name="eth_gw">Default Router</string>
20262026 <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>
20292029 <string name="eth_conf_save">Save</string>
20302030 <string name="eth_conf_cancel">Cancel</string>
20312031 <string name="eth_radio_ctrl_title">Ethernet Configuration</string>
@@ -2033,4 +2033,5 @@ found in the list of installed applications.</string>
20332033 <string name="eth_conf_perf_title">Ethernet Configuration</string>
20342034 <string name="eth_conf_summary">Configure Ethernet Devices</string>
20352035 <string name="eth_mask">Netmask</string>
2036+<string name="eth_toggle_summary_off">Turn off Ethernet</string>
20362037 </resources>
--- a/res/xml/ethernet_settings.xml
+++ b/res/xml/ethernet_settings.xml
@@ -20,7 +20,8 @@
2020 <CheckBoxPreference
2121 android:key="toggle_eth"
2222 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"
2425 android:persistent="false" />
2526 <Preference
2627 android:title="@string/eth_conf_perf_title"
--- a/src/com/android/settings/ethernet/EthernetEnabler.java
+++ b/src/com/android/settings/ethernet/EthernetEnabler.java
@@ -62,8 +62,9 @@ public class EthernetEnabler implements Preference.OnPreferenceChangeListener{
6262
6363 mOriginalSummary = ethernetCheckBoxPreference.getSummary();
6464 ethernetCheckBoxPreference.setPersistent(false);
65- if(mEthManager.getEthState() == ETH_STATE_ENABLED)
65+ if(mEthManager.getEthState() == ETH_STATE_ENABLED) {
6666 mEthCheckBoxPref.setChecked(true);
67+ }
6768
6869 /*
6970 mEthStateFilter = new IntentFilter(EthernetManager.ETH_STATE_CHANGED_ACTION);