am 083310d3
: Update NFC settings description, and fix polarity.
Merge commit '083310d316059c6592120c32e1c0b736e85b83c0' into gingerbread-plus-aosp * commit '083310d316059c6592120c32e1c0b736e85b83c0': Update NFC settings description, and fix polarity.
This commit is contained in:
@@ -785,7 +785,7 @@
|
|||||||
<!-- Used in the 1st-level settings screen to turn on NFC -->
|
<!-- Used in the 1st-level settings screen to turn on NFC -->
|
||||||
<string name="nfc_quick_toggle_title">NFC</string>
|
<string name="nfc_quick_toggle_title">NFC</string>
|
||||||
<!-- Used in the 1st-level settings screen as the turn-on summary -->
|
<!-- Used in the 1st-level settings screen as the turn-on summary -->
|
||||||
<string name="nfc_quick_toggle_summary">Turn on NFC</string>
|
<string name="nfc_quick_toggle_summary">Use Near Field Communication to read Tags and exchange Tags</string>
|
||||||
|
|
||||||
<!-- Wi-Fi Settings --> <skip />
|
<!-- Wi-Fi Settings --> <skip />
|
||||||
<!-- Used in the 1st-level settings screen to turn on Wi-Fi -->
|
<!-- Used in the 1st-level settings screen to turn on Wi-Fi -->
|
||||||
|
@@ -92,9 +92,9 @@ public class NfcEnabler implements Preference.OnPreferenceChangeListener {
|
|||||||
private void updateUi() {
|
private void updateUi() {
|
||||||
mCheckbox.setChecked(mNfcState);
|
mCheckbox.setChecked(mNfcState);
|
||||||
if (mNfcState) {
|
if (mNfcState) {
|
||||||
mCheckbox.setSummary(R.string.nfc_quick_toggle_summary);
|
mCheckbox.setSummary(null);
|
||||||
} else {
|
} else {
|
||||||
mCheckbox.setSummary("");
|
mCheckbox.setSummary(R.string.nfc_quick_toggle_summary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user