am 1bdb7874
: Make summary appear for both checked and unchecked NFC checkbox in Settings.
Merge commit '1bdb7874adf52b0fc2fe6ec40913a0562cf585ed' into gingerbread-plus-aosp * commit '1bdb7874adf52b0fc2fe6ec40913a0562cf585ed': Make summary appear for both checked and unchecked NFC checkbox in Settings.
This commit is contained in:
@@ -785,7 +785,7 @@
|
||||
<!-- Used in the 1st-level settings screen to turn on NFC -->
|
||||
<string name="nfc_quick_toggle_title">NFC</string>
|
||||
<!-- Used in the 1st-level settings screen as the turn-on summary -->
|
||||
<string name="nfc_quick_toggle_summary">Use Near Field Communication to read Tags and exchange Tags</string>
|
||||
<string name="nfc_quick_toggle_summary">Use Near Field Communication to read and exchange tags</string>
|
||||
|
||||
<!-- Wi-Fi Settings --> <skip />
|
||||
<!-- Used in the 1st-level settings screen to turn on Wi-Fi -->
|
||||
|
@@ -91,10 +91,5 @@ public class NfcEnabler implements Preference.OnPreferenceChangeListener {
|
||||
|
||||
private void updateUi() {
|
||||
mCheckbox.setChecked(mNfcState);
|
||||
if (mNfcState) {
|
||||
mCheckbox.setSummary(null);
|
||||
} else {
|
||||
mCheckbox.setSummary(R.string.nfc_quick_toggle_summary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user